-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
downloadRepo at GitHub action Failed to run. #137
Comments
Which version did you use? Does this occur with v102.2.2? |
Is this specified version special? I can give it a try if needed. I hope you provide the specific version number and the version number of hugo |
I'm trying to understand if this is a regression or not. Please always state the Node.js and hugo-bin versions. Unless I can reproduce the problem, there's nothing to be done. |
This is the fastest available to see the history, locally is
GitHub action 是nodejs 18+ |
Does v102.2.2 work? |
At that time, I didn't know how to use Hugo, so I didn't know if it worked. |
Please downgrade it in your repo and try again with v102.2.2. The error could be unrelated to hugo-bin. |
Do you mean try this version? Hugo does not have your version number. module: |
|
`>npm i [email protected] -D npm ERR! A complete log of this run can be found in: ` |
Test if it works. Then reinstall the latest version and try again:
|
Run npm ci
|
Does this describe a problem with the third-party site? |
I have no idea why this happens to you... Tests are passing with an empty Also, your CI is passing in some cases and not in others which hints that it's unrelated to hugo-bin. You'll have to debug the issue yourself and if it's something wrong with the code here, feel free to submit a PR. |
no I mean when downloadRepo has a specific value (this value is available locally), but in the action of GitHub, it cannot be installed normally. In the action of GitHub, if it is a null value, that is, the mirror address is not used, there is no problem when the action is installed. |
Like I said, we test with the value not present https://github.com/fenneclab/hugo-bin/blob/main/test/custom-repository.test.js If you think you have found a bug, you should submit a fix with a failing test. |
So, everything works fine. The failure you are having is due to something else, which I have no idea what is. |
Whether those tests have judged the difference between GitHub and local, I feel that my main difference is the difference between local and GitHub actions, which may have nothing to do with nodejs |
Because I only need to remove the mirror address of downloadRepo, or directly set it to https://github.com/, it is all available, I also just thought of setting it directly to https://github.com/ for testing |
It has been checked and verified and has been checked to confirm that the mirror address prohibits access from foreign addresses. Problem solved, feels ok. Lines 52 to 55 in b533c55
Because downloadRepo is mainly to solve the network access problem in the local environment of individual developers. And there will be no such problem on GitHub's server. In this way, even if downloadRepo is used to solve the local access problem, it also solves the problem of inaccessibility involving third-party mirror addresses in the workflow. Suggestion: If possible, this tool should judge the environment context. If it is some popular cloud hosting environment, you can use its own address for download and installation by default to avoid potential security problems. |
I don't think we need to change anything here. The environment variable has higher priority anyway. There's an open issue to verify the checksum of the binaries (#36), but I don't have the bandwidth to fix it. Happy to review a clean PR with tests and that doesn't introduce more packages. |
The downloadRepo problem involved in it runs fine locally, but after submitting to GitHub, it cannot continue when using action deployment. Where is this causing the problem? If there are other addresses that can be used normally on the GitHub side, you can test again and try to rule out the wrong direction.
Or is it possible to add fields for exclusive local use?
The address used is the following address.
"downloadRepo": "https://hub.gitmirror.com/https://github.com/"
The text was updated successfully, but these errors were encountered: