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

Fix stack build on windows #2092

Merged
merged 2 commits into from
Aug 31, 2020
Merged

Fix stack build on windows #2092

merged 2 commits into from
Aug 31, 2020

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Aug 30, 2020

Issue Number

None

Overview

On windows, the stack build would fail with some missing dependencies. There is some stack issue with GHC boot packages. The recommended course of action is to add them as extra-deps in stack.yaml. This fixes the build.

Comments

Since the libsodium VRF was added, there is now an extra step to get stack builds working on windows. I have updated our iohk-setup.ps1 script to install libsodium and configure stack to use it.

@rvl rvl added the RESOLVING ISSUE Mark a PR as resolving issues, for auto-generated CHANGELOG label Aug 30, 2020
@rvl rvl requested a review from Anviking August 30, 2020 11:00
@rvl rvl self-assigned this Aug 30, 2020
@rvl rvl added this to In Progress in Adrestia Aug 30, 2020
@Anviking
Copy link
Collaborator

Anviking commented Aug 31, 2020

(It worked! Thanks for this!)

@rvl
Copy link
Contributor Author

rvl commented Aug 31, 2020

bors r+

iohk-bors bot added a commit that referenced this pull request Aug 31, 2020
2079: Get TxMetadata from blocks on chain r=rvl a=rvl

### Issue Number

ADP-307 / #2077

### Overview

- Initial types, etc.

### Comments

- I don't have any serialized block data to make golden tests. But the testing can be done with integration tests.


2088: Bump cardano-base so that shelley-spec-ledger-test compiles r=rvl a=rvl

### Issue Number

Found during #2077.

### Overview

If you are keen enough to build the test suites of all our dependencies, you would have found `shelley-spec-ledger-test` failing to compile, because it needs a later revision of `cardano-base`. This will fix it.


2092: Fix stack build on windows r=rvl a=rvl

### Issue Number

None

### Overview

On windows, the stack build would fail with some missing dependencies. There is some stack issue with GHC boot packages. The recommended course of action is to add them as `extra-deps` in `stack.yaml`. This fixes the build.

### Comments

Since the libsodium VRF was added, there is now an extra step to get stack builds working on windows. I have updated our [iohk-setup.ps1](https://github.com/input-output-hk/adrestia/wiki/scripts/iohk-setup.ps1) script to install libsodium and configure stack to use it.


Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
Co-authored-by: IOHK <devops+stack-project@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Aug 31, 2020

Build failed (retrying...)

@KtorZ
Copy link
Member

KtorZ commented Aug 31, 2020

Reinstalled virtualbox on my new machine and followed the steps in the script above. Everything went just fine, well done!
I will now try running stack and some tests 👍

Q: The script is a bit in a hidden location at the moment, shall we consider having it cardano-wallet/scripts ?

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Aug 31, 2020

Build succeeded

@iohk-bors iohk-bors bot merged commit 0fc3538 into master Aug 31, 2020
@iohk-bors iohk-bors bot deleted the rvl/fix-stack-windows branch August 31, 2020 14:12
@rvl rvl moved this from In Progress to Closed in Adrestia Sep 1, 2020
@CharlesMorgan-IOHK CharlesMorgan-IOHK removed this from Closed in Adrestia Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RESOLVING ISSUE Mark a PR as resolving issues, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants