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

Workarounds to make constitution executable optionally buildable. #6418

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

bezirg
Copy link
Contributor

@bezirg bezirg commented Aug 16, 2024

Also I fixed and improved some comments in the constitution package.

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Changelog fragments have been written (if appropriate)
    • Relevant tickets are mentioned in commit messages
    • Formatting, PNG optimization, etc. are updated
  • PR
    • (For external contributions) Corresponding issue exists and is linked in the description
    • Targeting master unless this is a cherry-pick backport
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

@bezirg bezirg requested a review from a team August 16, 2024 14:15
@bezirg bezirg added the No Changelog Required Add this to skip the Changelog Check label Aug 16, 2024
@bezirg bezirg force-pushed the bezirg/fix-constitution-build branch from 0493eba to 403dcc4 Compare August 16, 2024 14:19
@bezirg bezirg force-pushed the bezirg/fix-constitution-build branch from 403dcc4 to b7e817c Compare August 16, 2024 14:20
@@ -95,6 +95,14 @@ allow-newer:
, inline-r:containers
, inline-r:primitive

-- Uncomment the following lines to make cardano-constitution:create-json-envelope buildable:True
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably a silly question, but is there no way to tell cabal to only build this if the user turns on some flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question, but I don't know how 🤷‍♂️

## Building the script

We have created an executable `create-json-envelope` to ease the creation of a constitution script.
This executable is disabled by default; to enable it, uncomment the related lines inside this repo's `cabal.project`:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a future plan to move this out of the repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

@bezirg bezirg merged commit 2947b82 into master Aug 16, 2024
6 checks passed
@bezirg bezirg deleted the bezirg/fix-constitution-build branch August 16, 2024 16:41
v0d1ch pushed a commit to v0d1ch/plutus that referenced this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No Changelog Required Add this to skip the Changelog Check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants