Commit Graph

22 Commits

Author SHA1 Message Date
zowoq
9c6d0ff795 format 2024-04-28 10:25:40 +10:00
Ryan Hendrickson
8e5317cb5e Drop hub dependency
Also be more permissive when a GitHub token isn't available.
2023-03-03 15:51:54 -05:00
Ryan Mulligan
36d059a460 fix app 2023-01-04 20:29:16 -08:00
Ryan Mulligan
74f225c5c2 remove update-list option; improve result logging 2023-01-04 20:25:21 -08:00
Ryan Mulligan
6a32dda818 Main: fix update-batch command parser 2022-07-27 20:24:10 -07:00
Ryan Mulligan
f5af634341 add new UpdateBatch command 2022-07-07 08:01:54 -07:00
Ryan Mulligan
9465ad7f08 fix outpath evaluation 2021-11-13 11:58:24 -08:00
Ryan Mulligan
8ba822409c also log each attrpath separately 2021-09-04 07:24:03 -07:00
Ryan Mulligan
5ae5261c11 add --atterpath flag to support exact attrpath update info 2021-08-27 12:15:26 -07:00
Ryan Mulligan
7e211952af also set GITHUB_API_TOKEN
jonringer says his python update script uses it
2020-10-11 12:35:18 -07:00
Ryan Mulligan
5749f0029a Remove cachix option
If you want to continue to use cachix, you need to set up a post-build
hook that pushes to cachix instead of using nixpkgs-update.
2020-08-17 21:11:26 -07:00
Ryan Mulligan
a0f4d275d4 reformat all with ormolu 2020-07-21 05:36:23 -07:00
Ryan Mulligan
90c83a30a6 fix delete-done, don't delete unless --delete passed
fixes #213
2020-06-12 21:45:46 -07:00
Benjamin Hipple
84fa7f7781 Pull GitHub Username from hub cfg instead of hard-coding r-ryantm
Resolves #192

Also avoids the unqualified import on `GitHub` in GH.hs, since this lib's types
are already complex/confusing enough without the ambiguity!
2020-06-06 22:43:22 -04:00
Benjamin Hipple
0feb0e7051 Fix several bugs with single-package updates
1. We should always use `~/.cache/nixpkgs`, since if we do it in PWD the hard
resets risk blowing away user work!

2. Previously, we weren't fetching and resetting to up-to-date master, which
   meant cmds would fail if your nixpkgs checkout was stale.

3. Previously, we were ignoring the `--pr` option entirely. This fixes that bug
by passing the bool into the UpdateEnv, and also cleans up the selected options
in the logger so it's easier to see.

4. We were including the title PR twice, like this:
   https://github.com/NixOS/nixpkgs/pull/86624

There are still some issues and things to improve, but with this PR I've managed
to get a working usage here:
https://github.com/NixOS/nixpkgs/pull/86625
2020-05-03 00:30:22 -04:00
Ryan Mulligan
d3690e0f69 switch to using GitHub library for PRs
unfortunately, this breaks PRs for single updates so removing that
feature advertisement for now.
2020-04-14 21:54:59 -07:00
Ryan Mulligan
36f251fd73 optionally run nixpkgs-review 2020-04-13 19:33:21 -07:00
Ryan Mulligan
8fd2aed8bf hide CVE reporting behind flag
closes #183
2020-04-06 20:39:27 -07:00
Ryan Mulligan
06a9f32830 separate update logic for single-package interactive updating case 2020-04-05 21:21:07 -07:00
Ryan Mulligan
b30faed1b1 improve ux for single update case
* instead of --dry-run use --pr to indicate a PR is wanted
* instead of additional updates, have update take the update as an
argument
* print out stdout instead of log file in the case of non-batch
updates
* print PR message to log even in the case of no PR
2020-04-05 18:04:38 -07:00
Ryan Mulligan
220fc8f65e read github token from env, local file, hub config file 2020-04-04 15:52:49 -07:00
Ryan Mulligan
523681c6d8 Infrastructure upgrades to bump dependencies and cleanup build system
No functional change; this pulls out all of the changes except the `polysemy`
refactoring from here:
https://github.com/ryantm/nixpkgs-update/pull/172

This will allow us to do development with the newer GHC and cleaned up
dependency stack, start using the `hspec` test suite, vet the `github` library
updates, etc., while we work on porting more of the effects to polysemy and
evaluating how it looks.
2020-03-29 20:06:44 -04:00