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
cmd/upspinfs.Symlink needs to take care of relative symlinks #602
Comments
Test commands:
Debug log is below:
|
One other bit of weirdness, the size of the symlink below is reported as zero, despite this line which explicitly sets the symlink size to nonzero: https://github.com/upspin/upspin/blob/master/cmd/upspinfs/fs.go#L996 This excerpt from the log from previous comment shows the issue:
|
This particular issue was fixed at #691. |
See: https://github.com/upspin/upspin/blob/master/cmd/upspinfs/fs.go#L984
It looks like any call to
Symlink()
in an upspin mounted directory will turn a symlink into one that is relative to the mountpoint of the upspin filesystem,This approach will break git repositories containing symlinks that get created in an upspinfs mounted filesystem, at the moment one creates a symlink with the intention of committing it.
This is because in a git repo you typically don't want absolute symlinks (so that the repo could be moved around without links breaking), but upspinfs will change your repo-relative symlink to one that is relative to the upspinfs mountpoint.
The text was updated successfully, but these errors were encountered: