You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #44, xk6 will not always try to use the latest k6 version to build the binary, it will instead use the one specified in the extensions' go.mod file(s). However, as this forum thread has shown, this can cause problems for unmaintained extensions, when users expect to be able to access newer k6 built-in APIs.
So, it would be nice if xk6 emits a warning when we are going to use an older version of k6. It seems like we can do it by running go list -m -json -u -mod=readonly go.k6.io/k6 for the repo, it will produce something like this:
I guess we can compare the Time or semver-compare the Version attributed between the main object and Update 🤔 Or we can figure out some other way to detect newer k6 versions.
The text was updated successfully, but these errors were encountered:
I wonder if we should just always emit the warning unless a version is provided on the command line 🤔 (irregardless of it is latest or v0.32.0).
This way the user will know they are building with a particular version (unless they use latest ;)).
We won't need to make any checks as well 🤷
On the other hand I guess if they just hard code xk6 build v0.31.0 --with ... in some script they will never get a warning. But should they get a warning if they have provided a specific version either way?
🤔 good points... Not sure either way, but I am leaning slightly towards always warning when the version is old, even if it was explicitly specified 🤔 Just because it's in our interest to minimize the number of users with old k6 versions as much as we can... 😅
After #44, xk6 will not always try to use the latest k6 version to build the binary, it will instead use the one specified in the extensions' go.mod file(s). However, as this forum thread has shown, this can cause problems for unmaintained extensions, when users expect to be able to access newer k6 built-in APIs.
So, it would be nice if xk6 emits a warning when we are going to use an older version of k6. It seems like we can do it by running
go list -m -json -u -mod=readonly go.k6.io/k6
for the repo, it will produce something like this:I guess we can compare the
Time
or semver-compare theVersion
attributed between the main object andUpdate
🤔 Or we can figure out some other way to detect newer k6 versions.The text was updated successfully, but these errors were encountered: