-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: try embed trick to include non-go files on vendor #559
Conversation
Signed-off-by: Mark Phelps <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #559 +/- ##
=======================================
Coverage 85.48% 85.48%
=======================================
Files 8 8
Lines 3933 3933
=======================================
Hits 3362 3362
Misses 571 571 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice hack. Do we need to do the same for the other non go files?
seems like we will run into this with the dynamic libs too?
Shame we have to then also add all these objects to any resulting binaries in another location in memory for everyone just to make this work 😮💨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't work :(
ext.go
should be in evaluation
package with
package evaluation
import "embed"
//go:embed ext/*
var _ embed.FS
is this because we need to fake embed the libraries too for vendoring? i hope this doesn't make the filesize double in the archive |
Signed-off-by: Mark Phelps <[email protected]>
into embed-go * 'embed-go' of https://github.com/flipt-io/flipt-client-sdks: build(deps-dev): bump @typescript-eslint/eslint-plugin (#554) build(deps-dev): bump prettier in /flipt-client-react (#561) chore(rust): update rust from 1.74 to 1.83 (#560)
@markphelps I tried the local app with vendor vs shared deps and the binary size was the same. It would be nice to have a deeper knowledge about this situation. |
So this is interesting.. it now packages both libc folders in This might actually allow us to implement what is asked for in #141 (comment) by using buildtags to for the appropriate arch. It still would mean that the initial |
also its just plain wrong as the musl folder is missing the linux subfolders.. something is off with the packaging workflow now |
ok so i removed the |
try to fix: #558