-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
lib: Move to go modules and shed a few tears #674
Conversation
I can't seem to make this work. Locally if I do this:
I get these scary errors. I've tried different things... Not sure how to fix this. It does build though. And the build errors here are different, but possible related?? @frebib I tried your branch as well and I get the same error locally... |
8979522
to
63f11a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@purpleidea I wonder if you have a stale cache or something. Pulling github.com/fsnotify/fsnotify
in a blank new project works fine: https://gist.github.com/frebib/9944516ccbac6e55f593e6ed9a7d968b/raw
return fmt.Errorf("program was not compiled correctly, see Makefile") | ||
} | ||
if cliArgs.Copying == "" { | ||
return fmt.Errorf("program copyrights we're removed, can't run") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/we're/were/
) | ||
|
||
// CLIArgs is a struct of values that we pass to the main CLI function. | ||
type CLIArgs struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that we use Cli
in gapi
: https://github.com/purpleidea/mgmt/blob/master/gapi/gapi.go#L60
Should we change one or the other to be consistent?
12c1b7a
to
d35037d
Compare
The old system with vendor/ and git submodules worked great, unfortunately FUD around git submodules seemed to scare people away and golang moved to a go.mod system that adds a new lock file format instead of using the built-in git version. It's now almost impossible to use modern golang without this, so we've switched. So much for the golang compatibility promise-- turns out it doesn't apply to the useful parts that I actually care about like this. Thanks to frebib for his incredibly valuable contributions to this patch. This snide commit message is mine alone. This patch also mixes in some changes due to legacy golang as we've also bumped the minimum version to 1.16 in the docs and tests.
The old system with vendor/ and git submodules worked great,
unfortunately FUD around git submodules seemed to scare people away and
golang moved to a go.mod system that adds a new lock file format instead
of using the built-in git version. It's now almost impossible to use
modern golang without this, so we've switched.
So much for the golang compatibility promise-- turns out it doesn't
apply to the useful parts that I actually care about like this.
Thanks to frebib for his incredibly valuable contributions to this
patch. This snide commit message is mine alone.
This patch also mixes in some changes due to legacy golang as we've also
bumped the minimum version to 1.16 in the docs and tests.