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

Forcing compat 1.17 version for gomod #35

Closed
wants to merge 1 commit into from
Closed

Conversation

codebien
Copy link

It forces the builder to use the go mod tidy -compat=1.17 version in the case of conflict resolution.

Should we add a way for the user of declaring to use the 1.16 version?

@codebien codebien self-assigned this Jan 26, 2022
@codebien
Copy link
Author

Why is that command required two times? It seems the builder already uses the environment 🤔

@codebien codebien marked this pull request as ready for review January 27, 2022 08:43
@@ -94,7 +94,7 @@ func (b Builder) Build(ctx context.Context, outputFile string) error {
log.Println("[INFO] Building k6")

// tidy the module to ensure go.mod and go.sum are consistent with the module prereq
tidyCmd := buildEnv.newCommand("go", "mod", "tidy")
tidyCmd := buildEnv.newCommand("go", "mod", "tidy", "-compat=1.17")
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't this force 1.17 as the minimum supported version for building? Do we want to impose that requirement? 🤔

@mstoykov
Copy link
Contributor

My problems with this fix are:

  1. we will likely want to remove/add those
  2. this doens't fix the problem for people who have xk6 and would not update - updating the extensions fixes that.

Given that the list of broken extensions is now a single digit AFAIK, I am for just making PRs to fix those :)

This isn't a veto of this PR just my opinion that the good it does is minimal and likely will give us more problems in the long run :(

@codebien
Copy link
Author

this doens't fix the problem for people who have xk6 and would not update - updating the extensions fixes that.

I didn't see the available option for the fix. According to this, it's for sure better. I'm closing, we can re-open if we will find different cases.

@codebien codebien closed this Jan 27, 2022
@codebien codebien deleted the fix-import-gomod17 branch January 27, 2022 10:28
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.

None yet

3 participants