-
Notifications
You must be signed in to change notification settings - Fork 178
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
refactor(codegen): Clean up old code, make codegen consistent #300
Conversation
@@ -11,7 +11,7 @@ import ( | |||
"github.com/fossas/fossa-cli/exec" | |||
) | |||
|
|||
//go:generate go-bindata -pkg bindata -o ./bindata/bindata.go ./bindata/pipdeptree.py | |||
//go:generate go-bindata -pkg bindata -modtime 1 -o ./bindata/bindata.go ./bindata/pipdeptree.py |
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.
what difference does this make?
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.
git
doesn't store modification time. Whenever somebody new checks out the CLI repository, the mtime of the file is the time when they did the checkout.
go-bindata
does store modification time (by default). This means every time somebody new checks out the CLI and runs make
, it'll produce a diff in this generated file.
By forcing go-bindata
to set the mtime to a specific value, new developers no longer need to deal with this extra noise.
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.
Fan of this change, makes git status a lot more straightforward as well.
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.
Looks good to me. The only important change I saw was -modtime 1
. Unless this is useful to anyone I'm a fan of simplifying the noise I get when I run make. Review approved and ready to merge.
No description provided.