314 Commits

Author SHA1 Message Date
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
comp500
39b9c300cc chore: update flake.lock 2023-07-16 22:53:25 +00:00
comp500
2255af72cf Fix branch for CI commit 2023-07-16 23:52:35 +01:00
comp500
aac49a8dec Re-add flake.lock workflow from #130, with only manual dispatch
flake.lock needs to be updated for Go 1.19!
2023-07-16 23:48:47 +01:00
comp500
10535d5e75 chore: update packwiz vendorSha256 2023-07-06 22:51:21 +00:00
comp500
d5b84f2647 Supply Github API token to Nix vendor hash update 2023-07-06 23:50:14 +01:00
comp500
1d979c28bf chore: update packwiz vendorSha256 2023-07-06 03:57:24 +00:00
comp500
beef8c6692 Add prefix to env variable lookup, replace . with _
e.g. $PACKWIZ_INIT_REINIT is equivalent to the -r flag
2023-07-06 04:56:58 +01:00
comp500
99d0af14c4 Fix duplicates in Modrinth dependency lookups 2023-07-02 14:38:10 +01:00
comp500
41465407b2 Fix out of bounds array access in acceptable-versions command 2023-06-27 00:46:26 +01:00
comp500
e8c28ae57e Add hold/unhold aliases, tweak help msg, remove unused param 2023-06-25 01:41:01 +01:00
joeyak
dffdbc9b80
Add pin and unpin commands/updated update command to work with pin & unpin (#234)
* Add pin and unpin commands/updated update command to work with pin & unpin

* Inline cobra functions
2023-06-25 01:38:03 +01:00
comp500
0df199852f Attempt to redownload cached files when errors are found 2023-06-23 19:45:44 +01:00
comp500
dd5520e471 Fix cache errors from files with same length/murmur2 fingerprint 2023-06-23 19:00:35 +01:00
comp500
d018d7e780 Fix download warning print loops 2023-06-23 18:22:02 +01:00
comp500
cbd38b3b73 CF: Treat versions with no loader as equal in loader comparison 2023-05-31 16:08:10 +01:00
comp500
7b380f23df Add support for legacy.curseforge.com URLs 2023-05-31 15:22:00 +01:00
comp500
2b878f5e28 Clean up misleading help message for cf import 2023-05-30 17:49:15 +01:00
comp500
6ab8235086 Change url add command to use sha256 (fixes #156) 2023-05-29 23:24:11 +01:00
comp500
4fb1f1b59d Index fixes and performance improvements (fixes #223, #224)
- Fixed creation of duplicate index entries when importing from CurseForge (fixes #224)
- Automatically remove duplicates in index
- Fixed `packwiz serve` with a custom `--pack-root` argument (fixes #223)
- Fixed `packwiz serve` with a custom index.toml location
- Cleaned up internal serving code, added comments and better errors
- Refactored path handling code
- Improved refreshing/exporting performance
- Factored out duplicated exporting logic
- Replaced GetAllMods calls with cleaner LoadAllMods calls and made the former private
- Improved variable names in update command
- Improved handling of aliassed files
- Changed CheckUpdate to take references to metadata
- Removed the ability to use an absolute path to the index file (that probably didn't work anyway)
- Behaviour change: order of entries in exported files may be random
2023-05-29 23:15:55 +01:00
comp500
d25817273b Fix Modrinth URL version number precedence (oldest-first) 2023-05-21 16:35:26 +01:00
comp500
21876cba1e Fix CurseForge file loader/ID comparison
(unsigned arithmetic moment)
2023-04-26 03:17:29 +01:00
comp500
7de26ec5c3 Allow "updating" CurseForge files to older versions 2023-04-15 02:23:52 +01:00
comp500
e966eaffc0 Manually replace FLK deps with QKL when using Quilt >=1.19.2 (fixes #212) 2023-04-13 17:12:44 +01:00
comp500
bd71ad5679 Manually replace FAPI deps with QFAPI/QSL when using Quilt (fixes #212) 2023-04-13 16:45:10 +01:00
comp500
bfe570a6a2 Allow mc-version-prefixed Forge version in init command 2023-04-13 02:39:21 +01:00
Matt Artist
539be71d11
Add migrate command (#207)
* Add base and loader command

* Support updating to latest

* Support explicit fabric versions

* Support explicit Forge version

* Support quilt

* Add support for updating Minecraft

* Add support for Forge recommended

* Fix Forge version sorting

* Various fixes

* Add documentation to the use

* More suggestions
2023-04-13 02:23:37 +01:00
comp500
06f9204cd4 Fix Quilt+Fabric files from Modrinth being preferred over Fabric (fixes #208) 2023-04-12 23:24:34 +01:00
Matt Artist
a344ba11ba
Add a command for changing the acceptable versions (#206)
* feat: add packwiz settings command to allow for changing acceptable versions

* Add deduping on the list

* Fix typo in comment

* Detect out of order list and give the user an option to correct it

* Support adding and removing specific versions

* Ensure the options aren't nil

* Clean up the slice removal boilerplate

* Fix usage of slices.Delete
2023-04-08 19:00:40 +01:00
comp500
9bddd21d32 Prevent the pack root directory from being packwizignored 2023-03-25 13:37:25 +00:00
comp500
9fc9ee5e09 Fix O(n^2) path lookup using a binary search 2023-03-24 02:37:45 +00:00
comp500
d79556259b Improve directory traversal performance 2023-03-24 02:18:13 +00:00
comp500
fa5460a187 Normalise paths to ensure they are compared properly 2023-03-24 01:31:10 +00:00
comp500
37cc68a9f7 Significantly improve refreshing performance
Looping through every file on every file update *and* cleaning + fromslash is sloww with many files
(ideally, we'd have a map to look up the file, but this is already significantly faster)
2023-03-24 01:00:05 +00:00
comp500
8d50b97356 Fix Modrinth searches taking the first argument as a slug 2023-03-16 13:42:20 +00:00
comp500
433218e3cf Make most Modrinth dep errors non-fatal, improve err message (fixes #201) 2023-03-15 02:41:46 +00:00
Matt Artist
1786e47806
fix: convert download hashes to lower before compare (#199) 2023-03-11 18:21:21 +00:00
comp500
abf701560d Fix crash creating Modrinth packs with multiple files from the same CF project (fixes #197) 2023-03-11 00:09:26 +00:00
comp500
aeae76a569 Linter fixes (error handling, unused constants, raw strings) 2023-03-10 17:06:48 +00:00
comp500
da04eb7f13 Regression fix: filter Modrinth search results by game versions 2023-03-10 16:47:18 +00:00
comp500
58bb2ae4cf Fix GoReleaser CI versions 2023-03-10 16:43:49 +00:00