Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix git access token not being sent in header #8

Merged
merged 6 commits into from
Mar 17, 2023

Conversation

fuzzyweapon
Copy link
Contributor

I found a bug in latest (v0.0.3). Github API began complaining about needing the tokens to be passed in the request header, which of course, stops packwiz dead in its tracks if you've passed a token in.

Typically, these authorization header tokens are done with "Authorization" as the key name, which worked when I tested it.

In addition, I did some minor cleanup for readability and maintainability.

Last, but not least, I setup the application Gradle plugin to run results in a new build subfolder <gradle_build_dir>/test-project where the default is <project_dir>/build/test-project.

Consolidates a lot of repeated checks when accessing json object strings into a local method of its own
Change run tasks' working directory from project directory to <build_directory>/test-project
Git only accepts auth tokens passed in the header
@fuzzyweapon
Copy link
Contributor Author

Looks like this was packwiz/packwiz-installer#49

Just found it after doing all of this lol. It was a good little exercise though so oh well! Shouldn't hurt to accept it before you move to your maven repo.

@comp500
Copy link
Member

comp500 commented Mar 6, 2023

Thanks for the PR! I'll definitely merge this - I ought to have merged the previous PR that also did this but I thought the rewrite would take less time than it has :P

I definitely should push my progress somewhere, hopefully I can get the rewrite finished fairly soon.

@fuzzyweapon
Copy link
Contributor Author

fuzzyweapon commented Mar 7, 2023 via email

@comp500 comp500 merged commit cdad0fa into packwiz:main Mar 17, 2023
@xtexChooser
Copy link

is there any releases or prebuilt binary with this patch available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants