kowainik / hit-on

:octocat: Kowainik Git Workflow Helper Tool
https://kowainik.github.io/projects/hit-on
Mozilla Public License 2.0
77 stars 13 forks source link

Try producing fully static binaries #138

Open chshersh opened 4 years ago

chshersh commented 4 years ago

Using static-haskell-nix most likely.

chshersh commented 4 years ago

I've run out of space locally when trying to produce a statically linked executable. My work can be found in this branch:

But in theory, it should work.

chshersh commented 4 years ago

An alternative could be to use Docker and the ghc-musl repository:

As a nice bonus point, the repo contains instructions for both cabal and stack and also supports GHC-8.8, so in theory it should be pretty straightforward to use it.

chshersh commented 4 years ago

Okay, Docker works smoothly and without any problems :+1: Looks like it's the way to go. Once we create a release, I will build a statically linked executable and upload it to releases. The only problem now is that the result of the --version command is not nice:

Hit v0.2.0.0
 ➤ Git revision: UNKNOWN
 ➤ Commit date:  UNKNOWN

I believe that this is because the .git folder is not copied. But I hope there's a flag to copy some additional folders, shouldn't be a big problem.

vrom911 commented 4 years ago

That is fantastic news! Thanks for working on this. The next release is going to be :fire: