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

"Provided cli_version () is not a valid SemVer string" #28

Closed
kpeters-cbsi opened this issue Nov 1, 2022 · 3 comments
Closed

"Provided cli_version () is not a valid SemVer string" #28

kpeters-cbsi opened this issue Nov 1, 2022 · 3 comments

Comments

@kpeters-cbsi
Copy link

When using the recommended Cargo-based workflow from the README, I get the following output:

FASTLY_API_TOKEN=XXXX act -j deploy --env FASTLY_API_TOKEN -W .github/workflows/deploy-cate.yml
Provide value for 'AWS_ACCESS_KEY_ID': 
Provide value for 'AWS_SECRET_ACCESS_KEY': 
[Deploy Application/deploy] 🚀  Start image=ghcr.io/catthehacker/ubuntu:act-latest
[Deploy Application/deploy]   🐳  docker pull image=ghcr.io/catthehacker/ubuntu:act-latest platform= username= forcePull=false
[Deploy Application/deploy]   🐳  docker create image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Deploy Application/deploy]   🐳  docker run image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Deploy Application/deploy]   ☁  git clone 'https://github.com/actions-rs/toolchain' # ref=v1
[Deploy Application/deploy]   ☁  git clone 'https://github.com/fastly/compute-actions' # ref=v2
[Deploy Application/deploy] ⭐ Run Pre Deploy to Compute@Edge
[Deploy Application/deploy]   🐳  docker cp src=/Users/cpete0624/.cache/act/fastly-compute-actions@v2/ dst=/var/run/act/actions/fastly-compute-actions@v2/
[Deploy Application/deploy] close /var/folders/99/_cljf5rd63xcqkklkrct4v9h0000gn/T/act2201414501: file already closed
[Deploy Application/deploy]   🐳  docker exec cmd=[node /var/run/act/actions/fastly-compute-actions@v2/setup/index.js] user= workdir=
[Deploy Application/deploy]   ❗  ::error::The provided cli_version () is not a valid SemVer string.
[Deploy Application/deploy]   ❗  ::error::
[Deploy Application/deploy]   ❌  Failure - Pre Deploy to Compute@Edge
[Deploy Application/deploy] 🏁  Job succeeded
Error: exitcode '1': failure

Workflow:

name: Deploy Application
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Install Rust toolchain
      uses: actions-rs/toolchain@v1
      with:
          toolchain: 1.54.0 # current Rust toolchain for Compute@Edge
          target: wasm32-wasi # WebAssembly target

    - name: Deploy to Compute@Edge
      uses: fastly/compute-actions@v2
      env:
        FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
@JakeChampion
Copy link
Contributor

@kpeters-cbsi I see you are using act, there's an issue stating act does not work with this action - #13 - do you have the same cli_version issue when running on GitHub Actions?

@kpeters-cbsi
Copy link
Author

kpeters-cbsi commented Nov 2, 2022 via email

@kailan
Copy link
Member

kailan commented Nov 17, 2022

Going to close this in favour of #13.

@kailan kailan closed this as completed Nov 17, 2022
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

3 participants