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

Use github key for extra-deps in stack.yaml #157

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

matsubara0507
Copy link
Contributor

when build hamler in environment that not setup ssh for git (e.g. docker or each CI/CD), raise this error:

Step 6/7 : RUN git clone --branch=v$HAMLER_VERSION --depth=1 https://github.com/hamler-lang/hamler.git
 ---> Running in 9ab9fdd9315e
...
Step 7/7 : RUN cd hamler && make && make install
 ---> Running in 3aabd115cfa3
STACK_YAML="stack.yaml" stack run build -- -l
Getting project config file from STACK_YAML environment
Cabal file info not found for happy-1.19.9, updating
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading root
...
Package index cache populated
Cloning afb0b731ff457d278403ab4bc134d3c88e09ea1f from git@github.com:hamler-lang/CoreErlang.git
Received ExitFailure 128 when running
Raw command: /usr/bin/git clone git@github.com:hamler-lang/CoreErlang.git /tmp/with-repo10/cloned
Standard error:

Cloning into '/tmp/with-repo10/cloned'...
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

make: *** [Makefile:9: build] Error 1

git: git@github.com:owner/name is fetch repository by ssh.
So, should use github key that fetch repository by https.
(or git: https://github.com/owner/name)

@emqplus emqplus self-requested a review June 12, 2020 06:09
@emqplus emqplus added this to the 0.1.1 milestone Jun 12, 2020
@emqplus emqplus merged commit 9e553a3 into hamler-lang:master Jun 12, 2020
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

Successfully merging this pull request may close these issues.

2 participants