354 Commits

Author SHA1 Message Date
comp500
a0c4aadba0 Merge branch 'main' into pr/unilock/230 2024-08-28 18:25:44 +01:00
comp500
4503e905d7 Reformat, force line endings to LF for Go files 2024-08-28 18:14:00 +01:00
Keith
7b4be47578
Update modrinth url regex to accept 'www.' as well (#304) 2024-05-27 20:54:22 +01:00
James Groom
9cca74476d
Improve r13y of packwiz modrinth export by sorting manifestFiles (#287)
resolves #244
2024-04-21 12:46:33 +01:00
Omay
5bb680f266
Improve installation instructions in README (#283) 2024-04-21 12:44:34 +01:00
Omay
62e78d40e9
Include primary version in printed acceptable versions list (#280)
fix #255
2024-04-21 12:43:31 +01:00
comp500
1c76f79888 chore: update packwiz vendorSha256 2024-04-21 11:42:16 +00:00
James Groom
069d32c5de
Respect -y for packwiz init (#290) 2024-04-21 12:41:22 +01:00
unilock
4853d807e1 github: also exclude -dev-preshadow.jar assets by default
seems common among GTNewHorizons projects, which is the primary target (for me personally)

Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-16 07:16:41 -04:00
unilock
7207d4c6a4 github: use regexp2 for advanced regex
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-16 07:04:13 -04:00
unilock
979b606b1e github: check + fail if there are no assets matching regex
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 19:18:05 -04:00
unilock
d54da349d5 github: allow using a regular expression to match assets
safeguard against "undefined behavior" when a release has more than one asset

Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 15:30:22 -04:00
unilock
bae4a6be64 github: remove outdated comment
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 15:29:06 -04:00
unilock
72afdee4d8 github: Handle empty x-ratelimit-remaining header
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:49:02 -04:00
unilock
3859b37267 github: Notify user when encountering GitHub API ratelimit
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:49:02 -04:00
unilock
3f5b953d00 github: Allow specifying branch to retrieve releases for via CLI
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:49:02 -04:00
unilock
e5d1d9d383 github: Properly handle writing to pack index
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:49:02 -04:00
unilock
d7fd884f48 github: Use Viper for GitHub API token
Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:49:02 -04:00
unilock
8d4f8d9a86 github: Accept GitHub API token via OS environment variable
"GH_API_TOKEN"

Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:48:57 -04:00
unilock
c96a6a30ad github: don't return releases on wrong branch
if a branch is specified, but a release cannot be found on that branch, return an error instead of simply the latest release

Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:48:57 -04:00
unilock
01945213d7 github: standardize language + fix api requests
language:
- funcs, vars, log messages, etc.

api requests:
- make all requests use the makeGet() function
- include packwiz user agent

Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:48:57 -04:00
unilock
6116393310 github: fixes and improvements
- "file" -> "asset"
- "version" -> "tag" or "release" (where appropriate)
- fix updater.go for upstream changes
- make printed log messages more similar to those of other modules
- move http request function(s) to separate file "request.go"
- remove the concept of a "Mod"; we're using "Repo"s (GitHub repositories) instead
- remove unnecessary fields in structs
- use sha256 instead of sha1 for asset checksums

Signed-off-by: unilock <unilock@fennet.rentals>
2024-04-15 14:48:57 -04:00
Tricked
837b4db760 fix: apply some suggestions 2024-04-15 14:48:57 -04:00
Tricked
faec4f4738 use sha1 instead of sha256 2024-04-15 14:48:57 -04:00
Tricked
5c07741447 feat: add branch support for github mods 2024-04-15 14:48:57 -04:00
Tricked
cb9550f4a6 feat: add support for more url aliases 2024-04-15 14:48:57 -04:00
Tricked
8c97b3e73b fix: use mod.title instead of slug 2024-04-15 14:48:57 -04:00
Tricked
715e9439a1 fix: file hashing 2024-04-15 14:48:57 -04:00
Tricked
07033023af feat: begin github support 2024-04-15 14:48:55 -04:00
comp500
7545d9a777
Merge pull request #270 from Whovian9369/main
Update version of `buildGoModule` used in `flake.nix`
2023-12-25 00:42:44 +00:00
Whovian9369
530dd1499d Add a small note to how inputs.nixpkgs.url maps to a Repo URL. 2023-12-24 15:38:25 -05:00
Whovian9369
79cb91a41e Edit flake.nix's inputs.nixpkgs.url to be a little more verbose. 2023-12-23 21:06:36 -05:00
Whovian9369
23311218a1 Add some notes to flake.nix and nix/prefetcher.nix
Notes are to describe `pkgs.buildGoModule` mapping in Nixpkgs.
2023-12-22 21:23:57 -05:00
Whovian9369
d3f58e025a Update Nix flake.lock to use newer version of Nixpkgs nixos-unstable branch. 2023-12-22 21:12:15 -05:00
Whovian9369
e27ddc4b9f Update version of buildGoModule used in flake.nix 2023-12-22 20:05:19 -05:00
Whovian9369
0c8beeac2f
Fix outputting vendorSha256 to nix/vendor-sha256 (#266)
* Fix outputting `vendorSha256` to `nix/vendor-sha256`

* Add `nix/vendor-sha256` to make tools like `nix run` happy.
2023-12-22 22:17:51 +00:00
comp500
7e3ca8d9d5 chore: update packwiz vendorSha256 2023-10-22 10:38:30 +00:00
comp500
1f09959be6 Remove viper settings for acceptable-versions --add/--remove flags 2023-10-22 11:32:38 +01:00
comp500
bee8e601d4 Clean up empty entries in index (not sure why they can exist?) 2023-10-14 14:45:28 +01:00
comp500
9496ad3a7b Pass through warnings from UpdateIndex, don't fetch sha256 if we already have it 2023-10-08 14:53:07 +01:00
comp500
ef049968b1
Fix incorrect usage of slices.Compact (fixes #257) 2023-09-23 21:52:23 +01:00
JaegyuDev
9889b48b0d
Add --side argument to filter list command (#256)
* added list command filter by side

* changed error logging for --side flags

* removed len checks on side flags

* removed comments previous commit made useless
2023-09-16 17:26:10 +01:00
comp500
b451a9b034 Support Quilt in CurseForge pack export (fixes #252) 2023-08-28 12:41:48 +01:00
comp500
66e9e1de78 Tweak list output format, sort by lowercase name 2023-08-26 15:57:13 +01:00
Noah Reinalter
1cd848264d
Optionally show filenames in list output (#248) 2023-08-26 15:54:00 +01:00
comp500
ac6a590f52 Use packwiz User-Agent for url command 2023-08-19 14:05:23 +01:00
comp500
4c23e264b0 Clean up code, filter version numbers for NeoForge as well as Forge
NeoForge doesn't seem to have an update checker JSON yet, so we can't determine
the recommended version
2023-07-30 15:09:18 +01:00
comp500
234f927be9 Support NeoForge as a loader (compatible with Forge mods)
TODO: implement support in migrate command
2023-07-30 14:56:11 +01:00
comp500
38dcc505e5 Add NeoForge to Modrinth version filtering 2023-07-30 14:56:11 +01:00
comp500
9c856e3d54 Fix crash with new CurseForge metadata (added NeoForge) 2023-07-30 14:56:11 +01:00