Okay so to use this thing, you need to add it to all branches and all tags of your project that you want downloadable via jitpack.
For tags, this means you'll likely need to rerelease said tags with the jitpack.yml
file added, this can be a bit tricky, so here's the steps.
- Get yourself the Github CLI tools: https://cli.github.com/, and authenticate your account with said tools. Instructions on how to use the Github CLI can be found here: https://cli.github.com/manual/
- Clone your repository (or a fork of it, if it isn't your project) into a local directory, and create a branch for each tag you need to update that is NOT up-to-date with the current main branch/branch for that minecraft version.
- For each brach corrisponding to a specific tag:
a: run
git checkout BRANCH_NAME_HERE
, withBRANCH_NAME_HERE
replaced with the name of the branch b: rungit reset --hard TAG_NAME_HERE
withTAG_NAME_HERE
replaced with the name of the tag c: rungit push -f origin BRANCH_NAME_HERE
d: repeat this process for each branch that needs to be reset to an existing tag - Next, commit the above
jitpack.yml
file to all jitpack fix branches created above. - You will now need to delete and recreate the before mentioned tags locally:
a: run
git checkout BRANCH_NAME_HERE
on the branch corrisponding to a target tag, which'll be referred to here asTARGET_TAG
b: rungit tag -d TARGET_TAG_NAME
c: rungit tag -a TARGET_TAG_NAME
. Note that doing this will put you into a text editor, most likely vi or vim, to create a message for said tag. In both vi and vim, hit the ESC key, and type:wq
, and then hit Enter to save the tag message and exit. d: Now, on github itself, delete the tag you just recreated locally. Via the website GUI, this can be done by navigating to the tags list by clicking on the tag icon with the number of total tags next to it. You will then need to view the page of the tag you wish to delete itself, and delete the tag from that page (via it's delete button). e: rungit push --tags
f: repeat this process for each branch and tag set - All done! Sadly, this is quite the tedious process, but it's the only way to fix previously existing tags (as jitpack is horrible and you really shouldn't use it anyways).