Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3417)

Issue 7314104: code review 7314104: cmd/go: reject case-insensitive file name, import collisions (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rsc
Modified:
11 years, 2 months ago
Reviewers:
ality
CC:
golang-dev, iant
Visibility:
Public.

Description

cmd/go: reject case-insensitive file name, import collisions To make sure that Go code will work when moved to a system with a case-insensitive file system, like OS X or Windows, reject any package built from files with names differing only in case, and also any package built from imported dependencies with names differing only in case. Fixes issue 4773.

Patch Set 1 #

Patch Set 2 : diff -r 19877242dd17 https://code.google.com/p/go/ #

Total comments: 1

Patch Set 3 : diff -r 76d9c67c6646 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -1 line) Patch
M src/cmd/go/main.go View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
M src/cmd/go/pkg.go View 1 3 chunks +42 lines, -1 line 0 comments Download
M src/cmd/go/test.bash View 1 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 4
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 2 months ago (2013-02-15 04:11:59 UTC) #1
iant
LGTM https://codereview.appspot.com/7314104/diff/2001/src/cmd/go/main.go File src/cmd/go/main.go (right): https://codereview.appspot.com/7314104/diff/2001/src/cmd/go/main.go#newcode639 src/cmd/go/main.go:639: if clash[fold] != "" { if t := ...
11 years, 2 months ago (2013-02-15 18:34:53 UTC) #2
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=c4f97b9dd1d7 *** cmd/go: reject case-insensitive file name, import collisions To make sure ...
11 years, 2 months ago (2013-02-15 19:39:43 UTC) #3
ality
11 years, 2 months ago (2013-02-20 12:36:48 UTC) #4
This CL added a test to cmd/go/test.bash that only
succeeds when using a case-insensitive file system.

When testing for case collisions in import paths
with a case-sensitive file system it prints:

	go list example/a should have failed, did not.

since len(p.DepsErrors) > 0. This is not a fatal
error when using go list.

  Anthony
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b