Skip to content
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

trying to debug permissions failure #1276

Merged
merged 1 commit into from
May 22, 2015
Merged

trying to debug permissions failure #1276

merged 1 commit into from
May 22, 2015

Conversation

whyrusleeping
Copy link
Member

I beleive that i've solved the permissions error in t0020-init.sh

the Lock function arbitrarily returns a different error that doesnt mean what you expect it to.

this has been run quite a four times with no repro of the issue, assuming its fixed

@whyrusleeping whyrusleeping added the status/in-progress In progress label May 21, 2015
@whyrusleeping whyrusleeping force-pushed the debug/perm-fail branch 5 times, most recently from 24f9de8 to cc90553 Compare May 22, 2015 00:24
@@ -13,6 +16,10 @@ import (
// TODO rename repo lock and hide name
const LockFile = "repo.lock"

func errPerm(path string) error {
return fmt.Errorf("failed to take lock at %s: permission denied", path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe:

"locking %s: permission denied"

so that the error prints as:

Error: locking <path>: permission denied.

(but maybe this is fine)

jbenet added a commit that referenced this pull request May 22, 2015
trying to debug permissions failure
@jbenet jbenet merged commit 988b158 into master May 22, 2015
@jbenet jbenet removed the status/in-progress In progress label May 22, 2015
@jbenet jbenet deleted the debug/perm-fail branch May 22, 2015 10:02
@jbenet jbenet mentioned this pull request May 22, 2015
52 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants