Update nixpkgs and various associated fixes#389
Merged
Merged
Conversation
Collaborator
Author
|
This PR is ready for review. It depends on #390, which proves that I addressed all the warnings introduced by the ghc update. |
480e91d to
b5cd75a
Compare
Collaborator
Author
|
I hadn't realized that our |
The treefmt parallel execution fix has been merged upstream, so the fetchpatch overlay is no longer needed. Also remove upper bounds in `nixfmt.cabal` AFAICT, all we've ever done with these upper bounds is bump them. They're failing now that we've bumped nixpkgs. Rather than continue to kick the can, just remove them. Justification: bounds like this make sense when you're a library in a semver ecosystem. Others need to be able to link against you, ideally without being forced to use the exact same version of all the things you depend on. However, we are *not* a Haskell library (haskell is just an implementation detail of the cli binary we build). We get reproducibility by virtue of using the nixpkgs Haskell package set. When we update nixpkgs, we rely upon our tests to tell us if anything broke. Co-authored-by: Jeremy Fleischman <me@jfly.fyi>
With the updates came a new version of fourmolu. Here are the changes.
To address this warning: > evaluation warning: nixfmt-rfc-style is now the same as pkgs.nixfmt which should be used instead.
I was seeing this warning: ```console $ nix-build -A checks.reuse /nix/store/7vlrdv22ai5ajs2p798md5a13g3j7p8q-python3.13-reuse-6.2.0/lib/python3.13/site-packages/reuse/project.py:332: PendingDeprecationWarning: '.reuse/dep5' is deprecated. You are recommended to instead use REUSE.toml. Use `reuse convert-dep5` to convert. ``` I fixed it by running `nix run --inputs-from . nixpkgs#reuse convert-dep5` at the root of the repo.
I noticed that the newer version of `cabal check` that we have now has a `--ignore` option, which lets us use ignore the warnings about missing dependency bounds and the `werror` flag, I included justification inline. We had the following errors which I did address: ``` Error: [git-protocol] Cloning over git:// might lead to an arbitrary code execution vulnerability. Furthermore, popular forges like GitHub do not support it. Use https:// or ssh:// instead. These warnings will likely cause trouble when distributing the package: Warning: [no-maintainer] No 'maintainer' field. These warnings may cause trouble when distributing the package: Warning: [doc-place] Please consider moving the file 'CHANGELOG.md' from the 'extra-source-files' section of the .cabal file to the section 'extra-doc-files'. Error: Hackage would reject this package. ``` I added this check to ci, so we won't regress in the future.
Collaborator
Author
|
This is (finally) ready for review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: There are multiple commits in here, I suggest reading them one at a time.