-
Notifications
You must be signed in to change notification settings - Fork 67
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
Bundling not working since v0.10.0 #273
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
Thx for the report, I was able to get it working doing:
The readme needs to be updated. |
This is incorrect, it succeed because I reverted the change I made to my preload_list accidently. @hsanjuan broke the preload list in a2884d2.
I guess this could be reverted, and have to update the build system to proper way. |
Yes, it is matter of having a main package separate from plugin code, or just renaming https://github.com/ipfs/go-ds-s3/blob/master/go-ds-s3-plugin/s3ds.go#L1 to not be @josiasbruderer can you try that, I mean just copying the file into Kubo. Don't revert as the working auto-builds are more useful now that manually bundling, imho. @josiasbruderer why are you manually bundling when you can build it and drop it in the plugins/ folder? |
Thanks @hsanjuan and @Jorropo for taking care of this! To offer a kubo package with integrated s3 capabilities (for now on arch linux: kubo-s3-git) I decided to go with the bundling. This way I can 1. make sure that kubo and s3-plugin are compatible (considering the struggle with getting go version and all other stuff right), 2. proberly build and install using package manager. I followed the idea of renaming renaming "main" back to "plugin" and modified all so that build process as it is still works but bundling is possible again. I therefore create a Pull-Request. |
This also caused me grief as when I updated the version in my Docker build (which I originally set up to use bundling for the exact reasons @josiasbruderer outlines above), it broke. I will switch my build to using a prebuilt binary for now but either the fix needs to go in or the discussion of bundling needs to be removed from the README :-) |
The PR was merged. Thanks @hsanjuan ! One problem persists: |
@josiasbruderer you can create a pull request editing |
You can |
Thanks for the information! I tried it using the commit hash ( |
@Jorropo sorry to bother again... I updated version in PR #277 which was merged 4 days ago but no tag was created. The needed workflow was probably delete in PR #270. |
Yes, I think I requested that because the Releases tab should include prebuilt binary releases and not be polluted with other tags and what not. I have added a v0.11.0 tag now. |
I tested bundling and everything seems to work again. Thanks guys! |
From v0.10.0 ( 6b09374) bundling as described in README.md doesn't work anymore.
go: module github.com/ipfs/go-ds-s3@f3c87949d2ecf746794795b4b366b3ac6a1e631e found (v0.10.0), but does not contain package github.com/ipfs/go-ds-s3/plugin
plugin/loader/preload.go:11:1: import "github.com/ipfs/go-ds-s3/go-ds-s3-plugin" is a program, not an importable package
This leads me to the question:
Is bundling still meant to be used? If yes: Is there a way to build kubo (bundled with go-ds-s3) without reverting changes of v0.10.0 in go-ds-s3-plugin/* (which would break building process of v0.10.0 anyway)?
Thanks for your support! :)
Information to reproduce:
The text was updated successfully, but these errors were encountered: