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

Added an API module to the executable spec, removed Lib #270

Closed
wants to merge 1 commit into from

Conversation

Soupstraw
Copy link
Contributor

@Soupstraw Soupstraw commented Nov 1, 2023

Description

Lib is a bit too ambiguous to use in cardano-ledger conformance tests, so I exposed the Foreign modules directly instead.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Code is formatted according to CONTRIBUTING.md
  • Self-reviewed the diff

@Soupstraw Soupstraw marked this pull request as draft November 1, 2023 12:13
@Soupstraw Soupstraw force-pushed the jj/reorganize-exec-spec branch from 3e4644a to 96ba986 Compare November 1, 2023 14:02
@Soupstraw Soupstraw changed the title Exposed Foreign modules in the executable spec, removed Lib Added an API module to the executable spec, removed Lib Nov 1, 2023
@Soupstraw Soupstraw marked this pull request as ready for review November 1, 2023 14:03
@Soupstraw Soupstraw force-pushed the jj/reorganize-exec-spec branch from 96ba986 to 7e43262 Compare November 1, 2023 14:04
default.nix Outdated Show resolved Hide resolved
Comment on lines +125 to +128
installPhase = ''
mv $out/haskell/${main}/* $out
rm -rf $out/haskell
'';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: we now have to be careful not to generate both Ledger and MidnightExample under the same directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what you mean by that, Nix has different outputs for midnight and ledger, so that shouldn't ever happen

Copy link
Collaborator

@omelkonian omelkonian Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c.f. build.yml, where we call nix-build twice (once for Ledger and once for MidnightExample but then rsync their output folders under a common docs/ folder.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, yeah, that's going to cause problems

@Soupstraw Soupstraw force-pushed the jj/reorganize-exec-spec branch from 7e43262 to 20bb449 Compare November 1, 2023 14:27
@Soupstraw Soupstraw requested a review from omelkonian November 1, 2023 14:35
@Soupstraw Soupstraw force-pushed the jj/reorganize-exec-spec branch from 20bb449 to 793c07b Compare November 1, 2023 16:30
@Soupstraw Soupstraw force-pushed the jj/reorganize-exec-spec branch from 793c07b to 9f5dd82 Compare November 1, 2023 16:32
@WhatisRT
Copy link
Collaborator

@Soupstraw do you still plan on continuing this?

@WhatisRT
Copy link
Collaborator

WhatisRT commented Apr 5, 2024

Closing this for now

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.

3 participants