-
Notifications
You must be signed in to change notification settings - Fork 22
Packaging with "tar.exe" on Windows #50
Copy link
Copy link
Open
Labels
Description
Hi,
I am trying out Eldev for the first time and I am really liking it so far. However, I think I may have stumbled upon a bug when trying to create a tarball on windows - meaning I cannot build a package.
Here is the output of eldev -vt package:
Started up on Thu Sep 30 16:06:59 2021
Running on GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
of 2021-03-26
Project directory: `c:/Users/dominik/.emacs.d/straight/repos/mvtn.el/'
No file `c:/Users/dominik/.eldev/config', not applying user-specific configuration
Loading file `Eldev'...
Using package archive `melpa-stable' at `https://stable.melpa.org/packages/' with priority 200
Using package archive `melpa-unstable' at `https://melpa.org/packages/' with priority 100
Reading target dependencies from file `.eldev/27.2/target-dependencies.build'...
Saving target dependencies to file `.eldev/27.2/target-dependencies.build'...
No file `Eldev-local', not customizing build
Executing command `package'...
Contents of package archive `melpa-stable' has been fetched already
Contents of package archive `melpa-unstable' has been fetched already
Not fetching contents of other archive(s) as redundant
All project dependencies (including those for set `build') have been installed already or are local
Loading file `mvtn-autoloads.el'
Generating build target list for standard fileset `main'
Ignored potential target: `mvtn-pkg.elc' (1)
Reading target dependencies from file `.eldev/27.2/target-dependencies.build'...
Building plan: `dist/mvtn-0.1.tar', `:package'
PACK -> dist/mvtn-0.1.tar
Packaging the following files: `mvtn-ag.el', `mvtn-compat.el', `mvtn-file-helpers.el', `mvtn-link-buttons.el', `mvtn-pkg.el', `mvtn-rg.el', `mvtn-tag-addons.el', `mvtn-templates.el', `mvtn.el' (9)
Full command line to create package tarball:
c:/Program Files/Git/usr/bin/tar.exe -cf c:/Users/dominik/.emacs.d/straight/repos/mvtn.el/dist/mvtn-0.1.tar mvtn-0.1/mvtn-ag.el mvtn-0.1/mvtn-compat.el mvtn-0.1/mvtn-file-helpers.el mvtn-0.1/mvtn-link-buttons.el mvtn-0.1/mvtn-pkg.el mvtn-0.1/mvtn-rg.el mvtn-0.1/mvtn-tag-addons.el mvtn-0.1/mvtn-templates.el mvtn-0.1/mvtn.el
`tar' output (ran from directory `c:/Users/dominik/AppData/Local/Temp/eldev-packaging-088kme'):
Saving target dependencies to file `.eldev/27.2/target-dependencies.build'...
Failed to create package tarball `dist/mvtn-0.1.tar'
Finished erroneously on Thu Sep 30 16:07:02 2021
What seems to be happening is that "tar.exe" does not like dealing with paths prefixed with c:/ or generally any drive letter. At least this simple test command from powershell implies this:
PS Desktop> &"c:/Program Files/Git/usr/bin/tar.exe" -cf "test.tar" "test.txt"
# works
PS Desktop> &"c:/Program Files/Git/usr/bin/tar.exe" -cf "c:/users/dominik/desktop/test.tar" "test.txt"
/usr/bin/tar: Cannot connect to c: resolve failed
I have tested this with the "tar.exe" from both cygwin and git bash - they both show the same error. Theoretically, it should absolutely be possible to build a package from wsl, but this is an inconvenience for someone like me who primarily uses native Windows tooling (please don't bully me ;) ).
Reactions are currently unavailable