-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/tools/cmd/stringer: regression with stringer: error: 0 packages found
when GOCACHE=off
#31843
Comments
Update: after some intense debugging, it seems the regression is related to GOCACHE. If it's set to |
Here's a fix for another golang regression in 1.11.x which wasn't needed before! More info in: golang/go#31843
Here's a fix for another golang regression in 1.11.x which wasn't needed before! More info in: golang/go#31843
A few quick comments:
|
My feedback is inline in the hopes it will benefit the project. I'm not a big golang user like kubernetes or docker, but I don't think I'm a slouch =D HTH
I understand. My experience with golang tooling has been negative. You might care to consider whether the changes upstream makes have been worth the cost.
Pity, they're valuable things :) Loose support for these, and you'll loose the Linux community.
I will not be using go modules unless they allow me to remain on git master for all my dependencies and don't require a new metadata file. My understanding is that neither of these are possible. The only time I want to track a specific version of a dependency, I do so with git submodules. This works perfectly with the
I'm using the distro version. The fact that something as basic as Cheers! |
Setting Sorry for the trouble you are having. |
stringer: error: 0 packages found
stringer: error: 0 packages found
when GOCACHE=off
Thanks for your feedback. Sorry it’s been a frustrating experience for you. Since |
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?GNU+Linux F29
In my project we run
go generate
in a package directory, and the package contains a file with thego:generate
line that calls stringer with:This always worked in golang 1.10.x Now it fails with:
My code lives in $GOPATH/src/....
But because that is a stupidly difficult place to get to, I have a symlink in:
~/code/foo/
that points to that dir. If I do acd $(pwd -P)
to get rid of the symlink then it works, however if I docd $(pwd -P) && go generate
then it fails.pwd -P
trick. What gives?Alternate failures include trying
cd $(pwd -P) && bash -c 'go generate'
but it also fails.Please let us know and add some tests to stop breaking behaviour please!
The text was updated successfully, but these errors were encountered: