Skip to content

haskell: update maintainer script for merging and opening PR to also upload package versions to Hackage#138480

Merged
cdepillabout merged 2 commits intoNixOS:haskell-updatesfrom
cdepillabout:merge-and-open-pr-fixes
Sep 20, 2021
Merged

haskell: update maintainer script for merging and opening PR to also upload package versions to Hackage#138480
cdepillabout merged 2 commits intoNixOS:haskell-updatesfrom
cdepillabout:merge-and-open-pr-fixes

Conversation

@cdepillabout
Copy link
Copy Markdown
Member

@cdepillabout cdepillabout commented Sep 19, 2021

Motivation for this change

Update maintainers/scripts/haskell/merge-and-open-pr.sh to also upload Haskell package versions in NixOS to Hackage. Also update a few other log messages and info in the docs.

I've used the code here to merge #138316 and open #138596, so I'm thinking this should be working well now.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label Sep 19, 2021
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Sep 19, 2021
@cdepillabout cdepillabout force-pushed the merge-and-open-pr-fixes branch from 642432b to 6451103 Compare September 20, 2021 00:55
@cdepillabout cdepillabout marked this pull request as ready for review September 20, 2021 00:58
Comment on lines 21 to +22
curl -u "$username:$($password_command | head -n1)" --digest -H "Content-type: text/csv" -T "$package_list" http://hackage.haskell.org/distro/NixOS/packages.csv
echo
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If this curl command succeeds, it returns OK! without an ending newline. Adding an echo here makes sure an ending newline is added.

Without adding this echo, the output from merge-and-open-pr.sh gets slightly messed up since there is no newline.

Copy link
Copy Markdown
Member

@maralorn maralorn left a comment

Choose a reason for hiding this comment

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

Great. Thx!

@cdepillabout cdepillabout merged commit d7692eb into NixOS:haskell-updates Sep 20, 2021
@cdepillabout cdepillabout deleted the merge-and-open-pr-fixes branch September 20, 2021 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants