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

Change makefiles and readme #172

Merged
merged 6 commits into from
Nov 10, 2019
Merged

Change makefiles and readme #172

merged 6 commits into from
Nov 10, 2019

Conversation

dineshba
Copy link
Contributor

Tasks:

  1. Introduce go mod
  2. Update Makefile targets

@dineshba
Copy link
Contributor Author

dineshba commented Oct 1, 2019

Fixes this issue also #160

Copy link
Contributor

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just merged another PR that introduced modules. However, I really like what you're doing with the config and Makefiles. If you change the PR to only be the updates to config and makefile, that would be an awesome addition to the project.

One question about the Makefile. Do you have a strong opinion about setting GO111MODULE=on? We would prefer that it's set to GO111MODULE=auto. Thanks!

@dineshba dineshba changed the title Introduce go mod Change makefiles and readme Oct 24, 2019
@dineshba
Copy link
Contributor Author

Hi @stmcallister Made the changes to the PR. I am okay with GO111MODULE being auto.

@stmcallister
Copy link
Contributor

Thanks, @dineshba! Also, any strong objections to adding the following lines to .gitignore?

vendor/
pd

Signed-off-by: Dinesh <dineshudt17@gmail.com>
@dineshba
Copy link
Contributor Author

dineshba commented Nov 5, 2019

@stmcallister Added pd to gitignore.

Can we check in vendor folder to git ? Advantage: Builds will be very fast in CI(as vendor is already present with code). Whats your opinion on this ?

@stmcallister
Copy link
Contributor

@dineshba We discussed this internally, and checking the vendor directory into the repo has pluses and negatives. The build speed you mentioned would be nice, but the policing of dependencies would be more tedious. Especially when developers can get the same benefit by running go mod vendor. So, we would rather not check the vendor directory into the repo, but instead either have devs run go mod vendor or include that in the makefile.

Signed-off-by: Dinesh <dineshudt17@gmail.com>
@dineshba
Copy link
Contributor Author

dineshba commented Nov 9, 2019

@stmcallister I agree with you. Added vendor/ to .gitignore. As you suggested, developers can still use go mod vendor and build using vendor directory. So i didn't modify Makefile

@stmcallister stmcallister merged commit e96b2a1 into PagerDuty:master Nov 10, 2019
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.

2 participants