-
Notifications
You must be signed in to change notification settings - Fork 10
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
tebako-packer doesn't support the new ./exe
binary directory
#215
Comments
./exe
directory./exe
binary directory
Another proposal: it might make sense to pass the path into the I don't understand the project well enough to know if there's a reason entry-point doesn't have a folder in front of it, but I'd guess there's a reason. |
Thank you @bradgessler for the feedback (and the recent PR #213 )!
As you realize the entrypoint is currently defined using the I believe it is time we take a clean look at how to make entrypoint definitions (we have previously discussed a Tebafile):
|
Hi, @bradgessler You are three times right :)
if you are interested in details you can look at Main branch has the same logic implemented in CMake script that would be very hard to change. |
After revisiting this issue I do not see any errors or unsupported features There is no Specification explicitly says "You don’t specify the full path (as in bin/rake); all application-style files are expected to be found in bindir", tebako follows this convention and expects the entry-point executable to be found in There is also
Tebako sets this option to a path within memfs like So I believe that tebako relies follows specifications. I have added some tests for different |
Took me a while to figure this out, but the packaging scenarios at https://github.com/tamatebako/blob/a1d21fb64f8df2b849f7d1696f2f1c86ff0a80af/README.adoc#L1002-L1021 won't work gems created via
bundler gem
.By default,
bundler gem blah
creates an./exe
directory, which is defined in the gemspec viaspec.bindir = "exe"
. This changed from a few years ago when binaries were stored in./bin
, but this path has since been reserved for developers binary stubs, for bundler, and the exe folder is reserved for the binaries that are to be distributed.I think the best approach might be for Tebake to find the
gemspec
, load it, ask for thebindir
, and use that path.I haven't tracked down in the code where this is happening, but I'm guessing the
bin
path is hard coded.For now my work around is to throw the
./exe/blah
file into./bin/blah
and get it running.The text was updated successfully, but these errors were encountered: