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
dotenv: fix broken package #73256
dotenv: fix broken package #73256
Conversation
@cptrodolfox Thanks for sending this PR. However, there are a few things that need to be changed before this can be merged. Specifically, 2. and 3. from this comment: #72923 (comment) |
Hi @cdepillabout, thank you for the comment. But, I have one question to fix this package I had to use the newest version from Hackage. The error that caused this package to be broken came from upstream. That, It is why I had to modify configuration-hackage2nix.nix, to update the versions of the dotenv package, the megaparsec package, and the hspec-megaparsec package. If I can not modify this file, should I wait for when the update is ready here? |
@cptrodolfox I'm not quite sure I follow you. So Even with your following fix?
|
Not really, If you put dontCheck it will be fixed I think. Because, the build only fails in the test part. |
@cptrodolfox Ah okay, I see. Could you update this PR to just mark Please remove the other changes from this PR (updating |
Hi @cdepillabout , I added dontCheck to the dotenv package (dotenv 0.8.0.2). I observed that a new package is available in package-packages (dotenv_0_8_0_4). Why did this happen? |
|
||
|
||
# Tests fails because of missing test file | ||
dotenv = dontCheck super.dotenv; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cptrodolfox This looks good except for one thing: This override should actually be in the configuration-common.nix file.
Once you move it there I will go ahead and merge it in!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I just moved the change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question though, would you mind explaining me I little bit of the pipeline used to update Hackage package set, or pointing me to any doc. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cptrodolfox I don't think there is any good documentation, but there is a video explaining it somewhat:
https://discourse.nixos.org/t/video-tutorial-how-to-re-generate-the-haskell-package-set-for-nix/4074
Also, peti does this weekly live on twitch. If you look at past broadcasts, you can watch him do it:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I already watch the videos, will see the twitch though.
I think when a package comes from the LTS package set, hackage2nix is smart enough to also pull in the latest version of a package from hackage and make it available. |
Co-Authored-By: Dennis Gosnell <cdep.illabout@gmail.com>
@@ -275,6 +275,7 @@ self: super: { | |||
dlist = dontCheck super.dlist; | |||
docopt = dontCheck super.docopt; # http://hydra.cryp.to/build/499172/log/raw | |||
dom-selector = dontCheck super.dom-selector; # http://hydra.cryp.to/build/497670/log/raw | |||
dotenv = dontCheck super.dotenv; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fixed with a more recent version of dotenv
, right? Could you add a comment here stating that, so that the nixpkgs maintainers know when we can remove this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That comment is ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, very easy to understand!
@cptrodolfox Sorry for going back and forth with you so much on this. Looking good now, so I will merge when CI finishes. |
Don't worry about that, it is a learning experience for me. I have been a user of NixOS for at least two years so I wanted to learn more about nixpkgs and how to contribute to it. |
Well thanks a lot for taking the time to contribute! We really appreciate you working with us on fixing stuff like this :-) |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @