-
Notifications
You must be signed in to change notification settings - Fork 92
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
Error: Os { code: 21, kind: Other, message: "Is a directory" } #11
Comments
Thanks for reporting this. Could you please upload the entire directory tarball somewhere? I would like to reproduce it. |
Aye aye, cap’n. https://mega.nz/#!iyYmTaAL!nhr1MD-Cf8-jIJ8PiSs1XUyQEQqRtpQ043siRtr4Egk Nifty tool you got going on here. Hope I didn't derp something. |
I've found the problem. When creating the tarball archive the library I'm using is throwing that error when there are symlinks pointing to relative paths. I've figured that out by using
I've fixed the issue by not following symlinks anymore, but rather adding them to the archive as is (which is what we expect). |
I've created a pre-release for macOS (which seems to be what you are using). Could you please download the updated packer and check if that works? https://github.com/dgiagio/warp/releases/download/v0.2.2-rc.1/macos-x64.warp-packer |
Thanks for your quick action and familiarizing me with
Pulled the pre-release and the packer and updated the exec "$HUGO_EXE -s $SITE_PATH" "$@" Progress. Then I checked "Application Support" directory and the expected files exist (including symlink) and runs as expected when I I did see the following issue which prevents me from running the packaged warp binary, however, which is a blocker for me on my current machine but may not be related to this issue:
The output above causes the Edit: The error is obviously coming from the |
If you execute your Try changing the quotes like this:
|
Comically that's what I had before I made the update. Works perfectly now. Thanks, bos. |
I'm attempting to use
warp-packer
to package a directory of files alongside a single go binary and hit the error titled. It's a bit cryptic so I started yanking stuff out and noticed it's only occurring when a directory exists inmyapp
.Expand to view output from tree
Here's the contents of my
exec
file:Here's the command I ran to produce the error:
./warp-packer --arch macos-x64 --input_dir myappp --exec exec --output ad
And the output from the packer
--version
flag:warp-packer 0.2.1
If I remove the
site
directory packing works fine and I'm able to execute. Not sure what to try next. I wasn't able to find anything about the error online and finagling myexec
script had no effect.Please let me know if you'd like me to upload a test case. The source code is open.
The text was updated successfully, but these errors were encountered: