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

refactor(codegen): Clean up old code, make codegen consistent #300

Merged
merged 2 commits into from
Sep 28, 2018

Conversation

elldritch
Copy link
Contributor

No description provided.

@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 35.631% when pulling 7b9bba7 on refactor/consistent-codegen into 72d7ca4 on master.

Copy link
Member

@zlav zlav left a 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.

@elldritch elldritch merged commit 54bed30 into master Sep 28, 2018
@elldritch elldritch deleted the refactor/consistent-codegen branch September 28, 2018 23:14
meghfossa added a commit that referenced this pull request Nov 12, 2021
Adds poetry support
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

Successfully merging this pull request may close these issues.

4 participants