We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using the java_server archetype.
The debian:packageBin task creates a symlink in /usr/bin pointing to the final target file.
This link is invalid when created in the staging directory and becomes valid once installed on the system.
After having run the debian:packageBin task once, it fails on subsequent calls with
ln: failed to create symbolic link `repo-service': File exists
The check at https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/linux/LinuxPackageMapping.scala#L74 is wrong, because File.exists returns false for broken symlinks.
Using "ln -f -s" should fix this.
The text was updated successfully, but these errors were encountered:
Thanks for the issue and diagnosis! I'm more than happy to take a patch if you get time before I have a chance to fix this :).
Sorry, something went wrong.
This seems already be fixed: https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/linux/LinuxPackageMapping.scala#L76
I tested it and I can make multiple debian:packageBin calls, without failing.
debian:packageBin
Great! I'll mark as resolved, should be in the next release.
No branches or pull requests
I'm using the java_server archetype.
The debian:packageBin task creates a symlink in /usr/bin pointing to the final target file.
This link is invalid when created in the staging directory and becomes valid once installed on the system.
After having run the debian:packageBin task once, it fails on subsequent calls with
The check at https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/linux/LinuxPackageMapping.scala#L74 is wrong, because File.exists returns false for broken symlinks.
Using "ln -f -s" should fix this.
The text was updated successfully, but these errors were encountered: