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

Dependency on git #97

Open
jlmagc opened this issue Nov 22, 2016 · 1 comment
Open

Dependency on git #97

jlmagc opened this issue Nov 22, 2016 · 1 comment

Comments

@jlmagc
Copy link

jlmagc commented Nov 22, 2016

Hello,
I just tried drip on a Solaris server, and it seems it has a dependency on git, since I'm getting an error "drip: line 150: git: command not found". For some reasons I can not install git on my server. Is there any way to remove that dependency?

@mbjarland
Copy link

mbjarland commented Mar 4, 2019

Not a complete solution, but I hacked my way past the immediate git dependency / breakage by editing the drip shell script:

function make_sha_path {
    opts="$PWD ${jvm_args[*]} $classpath $main_class"
    #sha=$(echo -n "$opts" | git hash-object --stdin) # this is line 150
    sha=$(echo -n "$opts" | sha1sum | awk '{ print $1 }')
    sha_path=$drip_root/$sha
    mkdir -p "$sha_path"
    echo -n "$opts" > $sha_path/opts
}

essentially replacing the hash generated by git with one generated via sha1sum and awk. Assumes you have sha1sum on your system. Replace with your favourite hashing tool capable of producing a unique id from the set of options passed in if you don't have sha1sum installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants