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

Cabal plugin: implement check for package.yaml in a stack project #4422

Merged
merged 6 commits into from
Oct 12, 2024

Conversation

JMoss-dev
Copy link
Contributor

Solves: #4400

Modifies findResponsibleCabalFile function to add guardAgainstHpack function which checks if a package.yaml file exists in the same directory as the .cabal file and handles the response in the cabal plugin.

Prevents stack from not more re-generating .cabal file if package.yaml is changed.

Revert "added guardAgainstHpack function"

This reverts commit f7fb00c.

added guardAgainstHpack function
@JMoss-dev JMoss-dev requested a review from fendor as a code owner October 11, 2024 14:34
@ASnd-dev ASnd-dev requested a review from michaelpj as a code owner October 11, 2024 15:56
@fendor fendor changed the title DRAFT: cabal plugin: implement check for package.yaml in a stack project Cabal plugin: implement check for package.yaml in a stack project Oct 12, 2024
Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! One little nitpick about the documentation, then this is good to go 🎊

Copy link
Collaborator

@VeryMilkyJoe VeryMilkyJoe left a comment

Choose a reason for hiding this comment

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

Thank you very much for this PR!
I just have a small nitpick regarding the documentation :)

@fendor fendor requested a review from VeryMilkyJoe October 12, 2024 12:07
@fendor fendor merged commit cd22dd7 into haskell:master Oct 12, 2024
24 of 35 checks passed
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.

4 participants