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

Trouble installing pkgx in GitHub Actions with brew #1042

Open
fredrikaverpil opened this issue Oct 13, 2024 · 0 comments
Open

Trouble installing pkgx in GitHub Actions with brew #1042

fredrikaverpil opened this issue Oct 13, 2024 · 0 comments

Comments

@fredrikaverpil
Copy link

fredrikaverpil commented Oct 13, 2024

I've got a GHA CI workflow which installs pkgx (via a Brewfile) on both macOS and Linux. I'm not sure what's going on but recently pkgx started yielding errors when installing via brew this way.

My GHA history shows this passing in CI on Oct 9th. I started noticing this failing on Oct 12th. So somewhere between these dates (unless timezone/DST) something changed?

GHA logs

https://github.com/fredrikaverpil/dotfiles/actions/runs/11313380024

macOS logs

Installing pkgx formula. It is not currently installed.
==> Fetching pkgxdev/made/pkgx
==> Downloading https://github.com/pkgxdev/homebrew-made/releases/download/v1.2.2/pkgx-1.2.2.arm64_big_sur.bottle.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/590209289/391e41c8-5126-48f6-b98f-9a130244a18c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241013%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241013T095451Z&X-Amz-Expires=300&X-Amz-Signature=02c0f826bf1186511bfd47782adec0351f11b5c024fedae002786468135763e7&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dpkgx-1.2.2.arm64_big_sur.bottle.tar.gz&response-content-type=application%2Foctet-stream
==> Installing pkgx from pkgxdev/made
==> Pouring pkgx-1.2.2.arm64_big_sur.bottle.tar.gz
==> Caveats
try it out:

    pkgx node@18 --eval 'console.log("pkgx: run anything")'

shell integration:

    pkgx integrate --dry-run
    # ^^ https://docs.pkgx.sh/shell-integration
==> Summary
🍺  /opt/homebrew/Cellar/pkgx/1.2.2: 3 files, 75.8MB
Error: No available formula with the name "pkgx". Did you mean pkger?
Error: No available formula with the name "pkgx". Did you mean pkger?
Error: Process completed with exit code 1.

Linux logs

==> Installing pkgxdev/made/pkgx
==> deno task compile
Last 15 lines from /home/runner/.cache/Homebrew/Logs/pkgx/01.deno:
Download https://deno.land/std@0.224.0/yaml/_type/merge.ts
Download https://deno.land/std@0.224.0/yaml/_type/nil.ts
Download https://deno.land/std@0.224.0/yaml/_type/omap.ts
Download https://deno.land/std@0.224.0/yaml/_type/pairs.ts
Download https://deno.land/std@0.224.0/yaml/_type/regexp.ts
Download https://deno.land/std@0.224.0/yaml/_type/seq.ts
Download https://deno.land/std@0.224.0/yaml/_type/set.ts
Download https://deno.land/std@0.224.0/yaml/_type/str.ts
Download https://deno.land/std@0.224.0/yaml/_type/timestamp.ts
Download https://deno.land/std@0.224.0/yaml/_type/undefined.ts
Download https://registry.npmjs.org/@faker-js/faker/-/faker-8.1.0.tgz
Download https://registry.npmjs.org/@types/node/-/node-18.16.19.tgz
error: Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.
  Specifier: https://deno.land/std@0.224.0/crypto/_wasm/lib/deno_std_wasm_crypto.generated.d.mts
    at https://deno.land/std@0.224.0/crypto/_wasm/lib/deno_std_wasm_crypto.generated.mjs:5:22

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/pkgxdev/homebrew-made/issues

Installing pkgxdev/made/pkgx has failed!

Steps to reproduce

  1. Add tap to Brewfile:
tap 'pkgxdev/made'
  1. Add install command to Brewfile:
brew 'pkgxdev/made/pkgx'
  1. Run from CI with
      - name: Test Brewfile install (macos)
        run: |
          brew upgrade
          brew bundle --file=_macos/Brewfile --verbose
        if: runner.os == 'macOS'
      - name: Test Brewfile install (linux)
        run: /home/linuxbrew/.linuxbrew/bin/brew bundle --file=_linux/Brewfile --verbose
        if: runner.os == 'linux'
@fredrikaverpil fredrikaverpil changed the title Trouble installing pkgx in GitHub Actions Trouble installing pkgx in GitHub Actions with brew Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant