Skip to content

Mention possible need for sudo -E to run make install#6127

Merged
vilmibm merged 1 commit intocli:trunkfrom
sparr:doc-source-sudo-E
Aug 24, 2022
Merged

Mention possible need for sudo -E to run make install#6127
vilmibm merged 1 commit intocli:trunkfrom
sparr:doc-source-sudo-E

Conversation

@sparr
Copy link
Contributor

@sparr sparr commented Aug 23, 2022

The documentation mentions that make install may require sudo to run. However, sudo make install will run Go commands with root's Go environment (e.g. /root/.config/go/env), which may not match the user's Go environment used to run make (e.g. ~/.config/go/env). This is a problem if the user's Go environment contains options such as GOPROXY=direct whose absence will cause build/install to fail. sudo -E make install will work around this issue in those sorts of situations, and I propose this warrants a bit more elaboration in the documentation comments.

@sparr sparr requested a review from a team as a code owner August 23, 2022 15:34
@sparr sparr requested review from samcoe and removed request for a team August 23, 2022 15:34
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Aug 23, 2022
@cliAutomation
Copy link
Collaborator

Hi! Thanks for the pull request. Please ensure that this change is linked to an issue by mentioning an issue number in the description of the pull request. If this pull request would close the issue, please put the word 'Fixes' before the issue number somewhere in the pull request body. If this is a tiny change like fixing a typo, feel free to ignore this message.

Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

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

nice catch, thank you!

@vilmibm vilmibm enabled auto-merge August 24, 2022 18:07
@vilmibm vilmibm disabled auto-merge August 24, 2022 19:05
@vilmibm vilmibm merged commit 4716de4 into cli:trunk Aug 24, 2022
@vilmibm
Copy link
Contributor

vilmibm commented Aug 24, 2022

I admin merged because the checks all hung with no visible way to kickstart them; they were not even needed, though, given that this is purely a docs change.

@sparr sparr deleted the doc-source-sudo-E branch August 24, 2022 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants