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

[Bug]: Setting only the major version doesn't work #510

Open
dlesnoff opened this issue Oct 11, 2024 · 1 comment
Open

[Bug]: Setting only the major version doesn't work #510

dlesnoff opened this issue Oct 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dlesnoff
Copy link

What happened?

Please, have a look at: TheAlgorithms/Nim#85
Setting only the major version doesn't seem to work.

  • '2.x'
    et:
  • '2.X'
    sont traités littéralement lors de l'installation de l'archive d'après les tests.

Relevant log output

Run jiro4989/setup-nim-action@v2
Run "/Users/runner/work/_actions/jiro4989/setup-nim-action/v2/install_nim.sh" \
2024-10-11 08:47:30 [INFO] install nim 2.X
tar: Error opening archive: Unrecognized archive format
Error: Process completed with exit code 1.

Actions log url

https://github.com/TheAlgorithms/Nim/actions/runs/11289267028/job/31398762857?pr=85

@dlesnoff dlesnoff added the bug Something isn't working label Oct 11, 2024
@dlesnoff dlesnoff changed the title [Bug]: [Bug]: Setting only the major version doesn't work Oct 11, 2024
@jiro4989
Copy link
Owner

@dlesnoff Set a repo-token parameter. (README)

Maybe, you failed to get responses of GitHub Rest API.
If you do not set a token, you can easily exceed the API rate limits.

Fix like:

        nim-version:
          - '2.0.8'
-         - '2.2.0'
+         - '2.x'

and

      - uses: jiro4989/setup-nim-action@v2
        with:
          nim-version: ${{matrix.nim-version}}
+         repo-token: ${{ secrets.GITHUB_TOKEN }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants