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

/entrypoint.sh line 11: theme-check: command not found #53

Closed
ChalzZy opened this issue Jan 14, 2025 · 5 comments
Closed

/entrypoint.sh line 11: theme-check: command not found #53

ChalzZy opened this issue Jan 14, 2025 · 5 comments
Labels
bug Something isn't working Severity: 2 High Severity

Comments

@ChalzZy
Copy link

ChalzZy commented Jan 14, 2025

Started failing in the last 24 hours in our theme-check pipelines.

Here's the logs

Successfully installed ast-2.4.2
Successfully installed parser-3.3.6.0
Building native extensions. This could take a while...
ERROR:  Error installing theme-check:
	ERROR: Failed to build gem native extension.

    current directory: /usr/lib/ruby/gems/3.0.0/gems/strscan-3.1.2/ext/strscan
/usr/bin/ruby -I /usr/lib/ruby/3.0.0 -r ./siteconf20250114-[7](...)-2bstrn.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /usr/lib/ruby/gems/3.0.0/gems/strscan-3.1.2 for inspection.
Results logged to /usr/lib/ruby/gems/3.0.0/extensions/x[8](...)6_64-linux-musl/3.0.0/strscan-3.1.2/gem_make.out
$ theme-check --version
/entrypoint.sh: line 11: theme-check: command not found

Workflow script

  theme-check:
    name: Theme Check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Theme Check
        uses: shopify/theme-check-action@v1
        with:
          token: ${{ github.token }}
@JohnnyMcGee
Copy link

I'm also seeing this exact same message today

@ds675
Copy link

ds675 commented Jan 15, 2025

Getting the same error

@ivan-krupskyi
Copy link

Same, tried shopify/theme-check-action@v2 as well. It also fails but with different error:

SyntaxError: Unexpected non-whitespace character after JSON at position 4
    at JSON.parse (<anonymous>)
    at runChecksJson (/home/runner/work/_actions/shopify/theme-check-action/v2/dist/index.js:22:2181)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async run (/home/runner/work/_actions/shopify/theme-check-action/v2/dist/index.js:22:291488)
Error: Unexpected non-whitespace character after JSON at position 4

It seems like this error is coming internally from your action code, so it is most probably related to the issue highlighted above.

@karreiro karreiro added bug Something isn't working Severity: 2 High Severity labels Jan 16, 2025
@graygilmore
Copy link

Hey all! v1 of the theme check action will likely not be updated. Please bump to v2 of the action. Here's our PR that fixes this for Dawn: Shopify/dawn#3704

@ivan-krupskyi I don't think that is related as we have many repos running v2 without a report of that. You could try running your action in debug mode for more information.

@ChalzZy
Copy link
Author

ChalzZy commented Jan 19, 2025

I can confirm that updating to v2 fixed the issue for us.

yaml for future reference if anyone comes across the same issue.

  theme-check:
    name: Theme Check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Theme Check
        uses: shopify/theme-check-action@v2
        with:
          token: ${{ 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 Severity: 2 High Severity
Projects
None yet
Development

No branches or pull requests

6 participants