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 commit sha in stack-bootstrap.yaml #392

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

jinwoo
Copy link
Member

@jinwoo jinwoo commented Jun 3, 2020

Latest stack doesn't seem to support named commits such as 'master'.

Get the commit sha from git rev-parse and append it to the yaml file.

This doesn't fully fixx (intentional typo to make GitHub not close the issue) #391 but
goes one step further. We still get an error like:

$ stack runghc -- bootstrap.hs
Cloning 0bef8c2f3da645f068b8a26ac168c1da41608182 from https://github.com/google/proto-lens
Unsupported tarball from /tmp/with-repo-archive189930/foo.tar: Symbolic link dest not found from proto-lens/proto-lens-imports/google to ../../google/protobuf/src/google, looking for proto-lens/../google/protobuf/src/google.
This may indicate that the source is a git archive which uses git-annex.
See https://github.com/commercialhaskell/stack/issues/4579 for further information.
bootstrap.hs: readCreateProcess: stack "--stack-yaml=stack-bootstrap.yaml" "path" "--local-install-root" (exit 1): failed

Latest stack doesn't seem to support named commits such as 'master'.

Get the commit sha from `git rev-parse` and append it to the yaml file.

This doesn't fix google#391 but
goes one step further. We still get an error like:

$ stack runghc -- bootstrap.hs
Cloning 0bef8c2 from https://github.com/google/proto-lens
Unsupported tarball from /tmp/with-repo-archive189930/foo.tar: Symbolic link dest not found from proto-lens/proto-lens-imports/google to ../../google/protobuf/src/google, looking for proto-lens/../google/protobuf/src/google.
This may indicate that the source is a git archive which uses git-annex.
See commercialhaskell/stack#4579 for further information.
bootstrap.hs: readCreateProcess: stack "--stack-yaml=stack-bootstrap.yaml" "path" "--local-install-root" (exit 1): failed
@blackgnezdo blackgnezdo merged commit 440473d into google:master Jun 3, 2020
@jinwoo jinwoo deleted the bootstrap branch June 3, 2020 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants