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

dep init fails on bitbucket.org/ww/goautoneg #1

Closed
carolynvs opened this issue Jul 26, 2017 · 5 comments
Closed

dep init fails on bitbucket.org/ww/goautoneg #1

carolynvs opened this issue Jul 26, 2017 · 5 comments
Assignees

Comments

@carolynvs
Copy link
Collaborator

The godep config for bitbucket.org/ww/goautoneg has a comment of null-5 which dep tries to convert into a constraint. When it fails, the entire init process stops. The workaround is to remove the comment.

I've opened the following (mostly related) dep issues to track:

With these in place, the init run would instead:

  • warn about the rejected comment and pick a new constraint.
  • warn if that resulted in the final locked revision changing.
  • write out a set of config files even if further unrecoverable errors were encountered.
@carolynvs carolynvs self-assigned this Jul 26, 2017
@sdboyer
Copy link
Collaborator

sdboyer commented Jul 26, 2017

just to note, my offhand memories of trying to convert k8s in the past put goautoneg at causing problems like maybe 40% of the time

@carolynvs
Copy link
Collaborator Author

After removing the comment, I was able to get much farther. So that's working for our little /s/staging/_staging experiment and those issues I opened in dep should prevent it from causing more trouble later. 🤞

@carolynvs
Copy link
Collaborator Author

I'm just opening issues to track what was necessary to get stuff working, but the real tracking issues for any work will live in other repos. Let me know if it's too noisy/unhelpful.

@krisnova
Copy link
Collaborator

These are good - I am doing my best to stay caught up

@carolynvs
Copy link
Collaborator Author

The main part of this has been fixed in the great importer rewrite of 2017 golang/dep#1100. Import no longer picks constraints that will immediately invalidate the locked revision, and ignores junk input.

The other issues mentioned in the OP, writing out the manifest/lock on a failed run and warning when a constraint can't be honored are still open but aren't blockers.

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

No branches or pull requests

3 participants