Skip to content

--- FAIL: filepath_test.TestEvalSymlinks (0.0 seconds) #1630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gopherbot opened this issue Mar 20, 2011 · 2 comments
Closed

--- FAIL: filepath_test.TestEvalSymlinks (0.0 seconds) #1630

gopherbot opened this issue Mar 20, 2011 · 2 comments

Comments

@gopherbot
Copy link
Contributor

by allard.guy.m:

What steps will reproduce the problem?
1. Attempt current build with symlinks already present higher in the subdirectory
hierarchy
2.
3.

What is the expected output?

A clean build and passing tests.

What do you see instead?

--- FAIL: filepath_test.TestEvalSymlinks (0.0 seconds)
    EvalSymlinks(/home/gmallard/hext/go/src/pkg/path/filepath/test)=/ad2/gma/home_ext/go/src/pkg/path/filepath/test, want /home/gmallard/hext/go/src/pkg/path/filepath/test
    EvalSymlinks(/home/gmallard/hext/go/src/pkg/path/filepath/test/dir)=/ad2/gma/home_ext/go/src/pkg/path/filepath/test/dir, want /home/gmallard/hext/go/src/pkg/path/filepath/test/dir
    EvalSymlinks(/home/gmallard/hext/go/src/pkg/path/filepath)=/ad2/gma/home_ext/go/src/pkg/path/filepath, want /home/gmallard/hext/go/src/pkg/path/filepath


Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

Ubuntu 10.4.2 LTS

Which revision are you using?  (hg identify)

f692a5e90f6f tip


Please provide any additional information below.

This failure occurs because in my setup there is a symbolic link further up in the
directory hierarchy.  In this particular case:

[gmallard@tjjackson ~]$ pwd
/home/gmallard
[gmallard@tjjackson ~]$ ls -ld hext
lrwxrwxrwx 1 gmallard gmallard 18 2011-01-16 20:50 hext -> /ad2/gma/home_ext/

I have:

GOROOT=/home/gmallard/hext/go

and I pull and build there.  But this is physically on the /ad2 device, not the device
where /home exists.

I can work around this by:
a) Changing GOROOT
b) Changing directories to the /ad2 device location

Only changing GOROOT is not sufficient, because then I get:

[gmallard@tjjackson src]$ ./all.bash 
Suspicious $GOROOT /ad2/gma/home_ext/go: does not match current directory.
@rsc
Copy link
Contributor

rsc commented Mar 20, 2011

Comment 1:

Owner changed to @adg.

Status changed to Accepted.

@adg
Copy link
Contributor

adg commented Mar 21, 2011

Comment 2:

Status changed to Duplicate.

Merged into issue #1622.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned adg Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants