-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
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
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. |
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. |
src/main/java/link/infra/packwiz/installer/bootstrap/Bootstrap.java
Outdated
Show resolved
Hide resolved
Yeah. I'd love to see it. I'm getting more invested on working on it more
as I've been looking through the code more and more, but I'm a little
hesitant because it sounds like you've got big stuff in the works.
…On Mon, Mar 6, 2023 at 11:31 AM comp500 ***@***.***> wrote:
Thanks for the PR! I'll definitely merge this - I ought to have merged the
previous PR that also did this
<#5> 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.
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJSAF4F2CL5CPSMQV5GLSDW2Y3RLANCNFSM6AAAAAAVQMWKZA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
is there any releases or prebuilt binary with this patch available? |
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
.