-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Publishing to github fails due to deprecated options in @octokit/rest.js #493
Comments
anyone have a workaround here? this seems to have forced my development to a grinding halt |
The workaround is to manually upload releases to github. Not the end of the world, but not ideal |
@positlabs cool. i have been doing this in the meantime. thanks! |
@benjtinsley @positlabs If you delete your |
@MarshallOfSound thanks for the suggestion, unfortunately that does not fix. |
@positlabs may be onto something by suggesting that it is a problem within octokit, or possibly electron-forge using an outdated version of octokit. without having much knowledge on typescript or octokit/rest.js it looks like the use of it in the electron-forge publish package differs from the advertised api on the rest.js repo. |
I found it, I don't think their deprecations work too well. |
This broke with @octokit/rest.js 15.2.0 ISSUES CLOSED: #493
@malept Should ping the folks on |
This broke with @octokit/rest.js 15.2.0 ISSUES CLOSED: #493
@MarshallOfSound once I make the PR for master, I'll see if I can make a minimal testcase for them. |
…rams This broke with @octokit/rest.js 15.2.0. ISSUES CLOSED: #493
Filed an issue upstream: https://github.com/octokit/rest.js/issues/848 |
…rams This broke with @octokit/rest.js 15.2.0. ISSUES CLOSED: #493
Reopening since the 5.x PR isn't merged yet (it's being weird in CI) |
While we're waiting for 5.x CI to behave itself, you should be able to work around this by adding this to forge config: config: {
forge: {
github_repository: {
options: {
protocol: undefined
}
}
}
} |
new version maybe should use baseUrl in v15.2.7 so we can set
https://runkit.com/gr2m/5aecb07ba3c91a00124a1be9/branches/master
|
I guess I need to be clearer: Workaround for Electron Forge 5.2.0: follow the directions in my previous comment.
For Electron Forge 5.2.1 (which is not released yet due to issues with CI):
|
if not set protocol and host i will get undefined error。 if set protocol is undefined always get undefined error。 |
This is what happens when you set protocol to
|
This broke with @octokit/rest.js 15.2.0 ISSUES CLOSED: #493
Merged / fixed now 👍 |
Co-authored-by: malept <electron-bot@users.noreply.github.com>
Please describe your issue:
Using v5.2.0, attempting to publish to github releases. Seems like the github api host (api.github.com) is undefined for some reason. Possibly an issue with octokit
Console output when you run
electron-forge
with the environment variableDEBUG=electron-forge:*
. (Instructions on how to do so here). Please include the stack trace if one exists.What command line arguments are you passing?
What does your
config.forge
data inpackage.json
look like?Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using
electron-forge init
is a good starting point, if that is not thesource of your problem.
https://github.com/positlabs/gif-goat
The text was updated successfully, but these errors were encountered: