Skip to content

Conversation

@msradam
Copy link
Contributor

@msradam msradam commented Jan 31, 2023

Added flags to const_bsds.go and const_win_unix.go to allow for building on IBM z/OS Unix System Services.

Can now clone the afero repository on a z/OS USS shell and run go install with no issues.

Afero is a dependency for the k6 tool, and enabling these build flags allows k6 to be built and run on z/OS.

Added flags to const_bsds.go and const_win_unix.go to allow for building on IBM z/OS
@CLAassistant
Copy link

CLAassistant commented Jan 31, 2023

CLA assistant check
All committers have signed the CLA.

@bep bep merged commit 45ef346 into spf13:master Mar 6, 2023
nono referenced this pull request in cozy/cozy-stack Sep 25, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/spf13/afero](https://togithub.com/spf13/afero) | require |
minor | `v1.9.5` -> `v1.10.0` |

---

### Release Notes

<details>
<summary>spf13/afero (github.com/spf13/afero)</summary>

### [`v1.10.0`](https://togithub.com/spf13/afero/releases/tag/v1.10.0)

[Compare
Source](https://togithub.com/spf13/afero/compare/v1.9.5...v1.10.0)

#### What's Changed

- Add sftpfs files ReadAt method by
[@&#8203;MRtecno98](https://togithub.com/MRtecno98) in
[https://github.com/spf13/afero/pull/378](https://togithub.com/spf13/afero/pull/378)
- Add build flags for z/OS Unix System Services by
[@&#8203;msradam](https://togithub.com/msradam) in
[https://github.com/spf13/afero/pull/384](https://togithub.com/spf13/afero/pull/384)
- rename mem fs with descendants by
[@&#8203;hanagantig](https://togithub.com/hanagantig) in
[https://github.com/spf13/afero/pull/364](https://togithub.com/spf13/afero/pull/364)

#### New Contributors

- [@&#8203;MRtecno98](https://togithub.com/MRtecno98) made their first
contribution in
[https://github.com/spf13/afero/pull/378](https://togithub.com/spf13/afero/pull/378)
- [@&#8203;msradam](https://togithub.com/msradam) made their first
contribution in
[https://github.com/spf13/afero/pull/384](https://togithub.com/spf13/afero/pull/384)
- [@&#8203;hanagantig](https://togithub.com/hanagantig) made their first
contribution in
[https://github.com/spf13/afero/pull/364](https://togithub.com/spf13/afero/pull/364)

**Full Changelog**:
spf13/afero@v1.9.5...v1.10.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on Monday" in timezone
Europe/Paris, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/cozy/cozy-stack).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi45Ny4xIiwidXBkYXRlZEluVmVyIjoiMzYuOTcuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
msradam added a commit to msradam/k6 that referenced this pull request Jan 12, 2026
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.

- const_bsds.go: add zos to include list (uses syscall.EBADF)
- const_win_unix.go: add !zos to exclude list (syscall.EBADFD unavailable)

Fixes build error:
  vendor/github.com/spf13/afero/const_win_unix.go:25:23: undefined: syscall.EBADFD

Follow-up to grafana#2888 and grafana#2892. Closes grafana#5547
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