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

Enable the iofs adapter to also return other interfaces from io/fs #100

Closed
wants to merge 20 commits into from

Conversation

JAORMX
Copy link

@JAORMX JAORMX commented Jan 10, 2025

Instead of relying on difficult casting, this improves developer
experience by providing easy ways of convering a billy filesystem into
the rest of the filesystem interfaces that are available in io/fs.

This is a safe operation since we already ensure the type implements
such interfaces some lines below my changes.

pjbgf and others added 20 commits August 4, 2024 15:11
Signed-off-by: Paulo Gomes <[email protected]>
This aligns the behaviour with chroot, as per use in go-git's default loader.

Signed-off-by: Paulo Gomes <[email protected]>
Signed-off-by: Evan Anderson <[email protected]>
The use of wasmbrowsertest in the latest versions of Ubuntu is failing
due to changes to unprivileged apparmor sandbox. The existing test_wasip1
should provide the same assurances that WASM is still working.

Signed-off-by: Paulo Gomes <[email protected]>
Signed-off-by: Paulo Gomes <[email protected]>
Bumping dependencies and forward ports
Bumps the golang-org group with 1 update: [golang.org/x/sys](https://github.com/golang/sys).


Updates `golang.org/x/sys` from 0.28.0 to 0.29.0
- [Commits](golang/sys@v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-org
...

Signed-off-by: dependabot[bot] <[email protected]>
…-org-b711640f48

build: bump golang.org/x/sys from 0.28.0 to 0.29.0 in the golang-org group
Instead of relying on difficult casting, this improves developer
experience by providing easy ways of convering a billy filesystem into
the rest of the filesystem interfaces that are available in `io/fs`.

This is a safe operation since we already ensure the type implements
such interfaces some lines below my changes.

Signed-off-by: Juan Antonio Osorio <[email protected]>
pjbgf
pjbgf previously approved these changes Jan 10, 2025
Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

@JAORMX LGTM for v5, so we will need to target this PR to releases/v5.x.

I am not sure this changes will make it to v6, as potentially we could have a better UX that removes their need. I created a new issue to improve the UX between go-billy and io/fs. Please add some information there on anything that could be improved on that front, so that it is taken into account as we make API changes for the next major release.

@pjbgf pjbgf changed the base branch from main to releases/v5.x January 10, 2025 08:45
@pjbgf pjbgf dismissed their stale review January 10, 2025 08:45

The base branch was changed.

@pjbgf
Copy link
Member

pjbgf commented Jan 10, 2025

Please rebase based of releases/v5.x.

@JAORMX JAORMX closed this Jan 10, 2025
@JAORMX JAORMX deleted the iofs-extra-interfaces branch January 10, 2025 09:37
@JAORMX
Copy link
Author

JAORMX commented Jan 10, 2025

@pjbgf thanks for the review! done #102

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