-
Notifications
You must be signed in to change notification settings - Fork 1.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
after cli.GlobalString was removed Google Cloud Print Connector cannot be built #926
Comments
What version of go are you using? I think this should not happen if you use Go that supports modules. |
On Ubuntu 18.04 $ go version |
The issue is that google/cloud-print-connector does not support go modules yet, so it falls back to your local urfave/cli download (master branch) and so the project won't build any more. |
The recent changes in git master broke our builds too. We don't use go modules. |
I assume you are vendoring your dependencies somehow differently in that case? Modules and vendoring was developed for this particular reason. I don't think it's fair to expect projects to stop all progress because some subset of users are not using widely adopted methods for ensuring version compatility and rely purely on luck that the upstream project will never make breaking API changes. |
We use git master of almost all our dependencies. It helps us keep up to date with changes in projects as opposed to having to bump everything all at once. See more info here: https://github.com/purpleidea/mgmt/blob/master/docs/faq.md#why-arent-you-using-glide-godep-or-go-mod-for-dependency-management We've only had about 3 breaks so far in the history of the project, funny enough, this makes 4, and one of the old ones was also from this project (codegangsta/cli in: purpleidea/mgmt@ab73261 )
Not at all. I agree, please change away. Of note, most mature quality projects do remain stable, however if there are changes to be made, we'd prefer they do make them, and improve API and code quality. What's missing this time, is that it seems the API changes were made before good docs or a porting guide were made available. That's my only big objection, and seeing as our builds are still broken, any help in knowing what to change or patches would be appreciated! Some initial work is in here: purpleidea/mgmt#571 |
As I mentioned in the other thread we expect one more of these breakages next year, so sadly expect more work in the future. |
👋 hi @purpleidea! Thanks for your feedback here, I had no idea people used go modules in this way ^^ I actually did create a ticket (#921) for writing migration guide, I just didn't know that we should create the guide before merging to master. You live and you learn 🙏 |
Closed via google/cloud-print-connector#470 |
I have an error when building Google Cloud Print Connector:
$ go get github.com/google/cloud-print-connector/...
github.com/google/cloud-print-connector/lib
go/src/github.com/google/cloud-print-connector/lib/config_unix.go:235:15: context.GlobalString undefined (type *cli.Context has no field or method GlobalString)
The text was updated successfully, but these errors were encountered: