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

Allow setting golang executable from environment variable #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

weirdwiz
Copy link
Contributor

This will help us to easily use different golang versions in the Makefile. Usually required to test out dependency upgrades.

Eg:

GO=go1.17 make run

This commit makes it easier to use different go versions for running the
commands in the Makefile

Signed-off-by: Divyansh Kamboj <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 22, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: weirdwiz
To complete the pull request process, please assign umangachapagain after the PR has been reviewed.
You can assign the PR to them by writing /assign @umangachapagain in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@weirdwiz
Copy link
Contributor Author

PTAL @vbnrh @umangachapagain

It's a small QOL commit.

@@ -1,6 +1,8 @@
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
CWD := $(shell pwd)

GO ?= go
Copy link
Member

Choose a reason for hiding this comment

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

using different versions can cause unwanted confusion (for example go.mod/go.sum gets generated differently with 1.16 and 1.17) . best option is to stick to the required versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but the default behavior will remain the same nonetheless. But sometimes we might need to test out multiple golang executable, usually when updating dependencies.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we temporarily set PATH and test it?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 22, 2022

@weirdwiz: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/integration-test 20d819d link true /test integration-test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

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