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

Remove -i go build flag (#3128) #3335

Merged
merged 3 commits into from
Jun 15, 2020

Conversation

vytautas-karpavicius
Copy link
Contributor

What changed?
Removed -i go build flag in Makefile

Why?
Having -i go build flag tries to install target dependencies,
which on some systems can result in permission denied errors.

After some research it appears that this flag could had been used for
improving build performance but this is no longer necessary after Go 1.10.
https://golang.org/doc/go1.10#build

There is an outstanding go issue golang/go#27285
that is possibly related permission errors seen by some users.
The advise there is to not use -i flag.

How did you test it?
Successful build.

Potential risks
This only affect build process. Worst case - not being able to build it.

Having -i go build flag tries to install target dependencies,
which on some systems can result in permission denied errors.

After some research it appears that this flag could had been used for
improving build performance but this is no longer nessesary after Go 1.10.
https://golang.org/doc/go1.10#build

There is an outstanding go issue golang/go#27285
that is possibly related permission errors seen by some users.
The advise there is to not use -i flag.
@coveralls
Copy link

coveralls commented Jun 15, 2020

Coverage Status

Coverage decreased (-0.01%) to 67.789% when pulling 6f07a7b on do-not-install-go-dependencies into 5068665 on master.

@vytautas-karpavicius vytautas-karpavicius merged commit e2401c4 into master Jun 15, 2020
@vytautas-karpavicius vytautas-karpavicius deleted the do-not-install-go-dependencies branch June 15, 2020 09:17
yux0 pushed a commit to yux0/cadence that referenced this pull request May 4, 2021
Having -i go build flag tries to install target dependencies,
which on some systems can result in permission denied errors.

After some research it appears that this flag could had been used for
improving build performance but this is no longer nessesary after Go 1.10.
https://golang.org/doc/go1.10#build

There is an outstanding go issue golang/go#27285
that is possibly related permission errors seen by some users.
The advise there is to not use -i flag.
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