vendor: add z/OS build flags to vendored afero #5548
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Add zos build tags to vendored spf13/afero files to enable building on z/OS USS. This mirrors the upstream fix in spf13/afero#384 which was merged in v1.15.0, but the vendored version (v1.1.2) predates it.
Why?
I am actively promoting the use of the k6 test tool in our z/OS test squads. However, it is difficult to maintain the most up-to-date version due to build complexities with cloning both afero and k6. I wanted to streamline it by allowing a simpler build that just involves a
git cloneandgo build. These changes fix the build error:Follow-up to #2888 and #2892. Closes #5547
Checklist
make check) and all pass.No new tests added, this is a build-tag-only change. The change mirrors upstream spf13/afero#384 and the past modification to ui_unix.go.
Checklist: Documentation (only for k6 maintainers and if relevant)
Please do not merge this PR until the following items are filled out.
Related PR(s)/Issue(s)