Skip to content

Conversation

@crozzy
Copy link
Contributor

@crozzy crozzy commented Jan 23, 2026

TODO: this is a test

@crozzy crozzy force-pushed the try-add-macos-to-matrix branch 4 times, most recently from 52eeadb to a936491 Compare January 23, 2026 23:54
@crozzy
Copy link
Contributor Author

crozzy commented Jan 23, 2026

@BradLugo could you possibly check this branch locally?

@crozzy crozzy requested a review from BradLugo January 23, 2026 23:55
@hdonnay
Copy link
Member

hdonnay commented Jan 26, 2026

These changes don't work because dup(2) does not create another file description, only another file descriptor.

@BradLugo
Copy link
Contributor

In other words, the seeks/reads/writes are not independent. Hank and I discussed this solution on Slack before, and he showed me the light: https://www.man7.org/linux/man-pages/man2/open.2.html#:~:text=Open%20file%20descriptions,-The

@crozzy crozzy force-pushed the try-add-macos-to-matrix branch from a936491 to b0fb426 Compare January 27, 2026 22:03
This change adds another job to the CI which can will test on platforms
other than ubuntu-latest. At the moment it's only testing macos-latest
with the fetcher tests but can be expanded in either direction.

Signed-off-by: crozzy <[email protected]>
When forcing the linux fallback (no O_TMPFILE) it triggers an error:
encountered errors: openat fetcher.xxxxxxxx: no such file or directory,
when adding the O_CREATE flag the fallback's error was fixed. This also
adds the flags to the unix and windows variants.

Signed-off-by: crozzy <[email protected]>
@crozzy crozzy force-pushed the try-add-macos-to-matrix branch from b0fb426 to 007bdb1 Compare January 27, 2026 23:27
f.Name() returns the full absolute path, but os.Root.OpenFile()expects
a path relative to the root. Use Base() to get just the filename.

Signed-off-by: crozzy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants