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

Add deprecation warnings to Nix integration #9205

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

yvan-sraka
Copy link
Collaborator

@yvan-sraka yvan-sraka commented Aug 25, 2023

This PR modifies cabal behavior by adding deprecation warnings to Nix integration.

This has been discussed on the discourse.

Checklist:

Bonus points for added automated tests!

QA Notes:

  • Calling cabal --help should display the [DEPRECATED] label next to each Nix integration-related flag in the list ;
  • Using cabal some-v1-command with the --enable-nix or --nix=True flag should display a warning about the deprecation of the feature and provide a link to the online documentation for further information.

@yvan-sraka yvan-sraka force-pushed the deprecate-nix-integration branch 5 times, most recently from c37ab91 to 9cf3a97 Compare August 25, 2023 10:32
Copy link
Collaborator

@ffaf1 ffaf1 left a comment

Choose a reason for hiding this comment

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

Very good.

Copy link
Member

@Kleidukos Kleidukos left a comment

Choose a reason for hiding this comment

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

QA notes are missing, and there is a redundant WARNING. Otherwise looks good.

cabal-install/src/Distribution/Client/Nix.hs Outdated Show resolved Hide resolved
doc/nix-integration.rst Outdated Show resolved Hide resolved
@Kleidukos
Copy link
Member

@yvan-sraka good job, now it's time to update the CLI output test suite and it should be good

@yvan-sraka yvan-sraka force-pushed the deprecate-nix-integration branch 5 times, most recently from 46a9361 to 4e8a3f1 Compare September 3, 2023 17:57
@yvan-sraka
Copy link
Collaborator Author

@yvan-sraka good job, now it's time to update the CLI output test suite and it should be good

I updated the PR, now the tests are green :)

@Kleidukos Kleidukos added the merge me Tell Mergify Bot to merge label Sep 4, 2023
@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Sep 6, 2023
@mergify mergify bot merged commit 00bbb66 into haskell:master Sep 6, 2023
44 checks passed
@yvan-sraka yvan-sraka deleted the deprecate-nix-integration branch September 6, 2023 09:42
yvan-sraka added a commit to yvan-sraka/cabal that referenced this pull request Sep 7, 2023
This is a follow-up of haskell#9205
@yvan-sraka yvan-sraka mentioned this pull request Sep 7, 2023
4 tasks
@andreabedini
Copy link
Collaborator

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants