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

Makefile: Remove -C flag from go command #3249

Merged
merged 1 commit into from
May 31, 2023

Conversation

rene
Copy link
Contributor

@rene rene commented May 30, 2023

go 1.20 introduced flag -C, which changes to the directory pointed in the argument before performing the command. Commit
3a5201f started to use -C, breaking the build on systems with go versions lower than 1.20. Many distros (checked Ubuntu and Debian) still don't have package for Go 1.20, requiring manual installation, which can be annoying for users. This PR provides a workaround for this issue. In the future, when distros bump go version to 1.20, this commit can be reverted.

go 1.20 introduced flag -C, which changes to the directory pointed in the
argument before performing the command. Commit
3a5201f started to use -C, breaking the
build on systems with go versions lower than 1.20. Many distros (checked
Ubuntu and Debian) still don't have package for Go 1.20, requiring manual
installation, which can be annoying for users. This commit provides a
workaround for this issue. In the future, when distros bump go version to
1.20, this commit can be reverted.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
@rene rene requested review from eriknordmark and rvs as code owners May 30, 2023 15:19
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

@eriknordmark eriknordmark merged commit 714a39d into lf-edge:master May 31, 2023
@rene rene deleted the remove-flag-c branch November 2, 2023 09:41
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.

3 participants