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

Silence some Stack complaints #5231

Merged
merged 2 commits into from
Jul 16, 2024
Merged

Conversation

sellout
Copy link
Contributor

@sellout sellout commented Jul 15, 2024

Overview

By default, Stack will complain if you’re not using Nix integration when nix is on the PATH and it will complain when you’re not using the latest version of Stack.

We have reasons for not doing either of these things, and so we tell Stack to stop complaining.

Interesting/controversial decisions

Ideally, we could tell Stack to not complain about Nix only when we’re running from the Nix shell, but Stack doesn’t accept --no-notify-if-nix-on-path as a CLI flag, so we silence it more broadly.

Test coverage

CI ensures that Stack runs as intended, but not whether these particular warnings are printed out or not. It’s simply a contributor convenience, and “it works for me.”

sellout added 2 commits July 15, 2024 16:45
We use a specific version of Stack, we don’t want Stack complaining to
contributors that it doesn’t happen to be the latest.
We intentionally disable Stack’s Nix integration when it’s run from a
Nix shell. We don’t want Stack complaining that we should enable it
since it found `nix` on the path.
@aryairani aryairani merged commit 1337ac2 into unisonweb:trunk Jul 16, 2024
20 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.

2 participants