Skip to content
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

tar is expected to have --force-local option #662

Closed
mackler opened this issue Sep 4, 2015 · 1 comment
Closed

tar is expected to have --force-local option #662

mackler opened this issue Sep 4, 2015 · 1 comment
Labels
feature request universal Zip, tar.gz, tgz and bash issues

Comments

@mackler
Copy link
Contributor

mackler commented Sep 4, 2015

I am wanting to use sbt-native-packager on FreeBSD (10.2). The base-installation of tar in this version of FreeBSD lacks the --force-local option. I have gnu's tar, which has the --force-local option, installed on the machine, but it is named gtar rather than tar.

It seems that both the name of the tar executable and the --force-local option are hard-coded in the sbt-native-packager source code. On my FreeBSD machine, invoking the universal:packageZipTarball task fails with a complaint about the --force-local option.

Is there any simple work-around of this issue that does not involve renaming the commands on my operating system? If not, is the ability to tell sbt-native-packager to refrain from including the --force-local option when invoking tar, or changing the name of the tar executable a feature that might eventually find its way into this project?

@muuki88 muuki88 added universal Zip, tar.gz, tgz and bash issues feature request labels Sep 4, 2015
@muuki88
Copy link
Contributor

muuki88 commented Sep 4, 2015

At this point there's no easy way to change the commands in sbt-native-packager. If you want to change this behaviour in sbt-native-packager you will have to override the task. I recommend aliasing your gtar command to tar. If this is not acceptable for you, please provide a pull request. If you need any help, just ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request universal Zip, tar.gz, tgz and bash issues
Projects
None yet
Development

No branches or pull requests

2 participants