asdf-vm / asdf-vm/actions

Setting up asdf fails

Open
#559 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
163
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Unclear if I do something wrong: https://github.com/Camelcade/Perl5-IDEA/commit/4ab4947f45cc85c4cb1b8f4427e4cfd3d4e0f32f

CI run: https://github.com/Camelcade/Perl5-IDEA/actions/runs/5295899879/jobs/9586664788

Looks like this:
```
Run asdf-vm/actions/setup@v2.2.0
with:
asdf_branch: master
skip_install: false
env:
ORG_GRADLE_PROJECT_downloadIdeaSources: false
CI: GitHub
GITHUB_TOKEN: ***
COVERALLS_REPO_TOKEN: ***
YOUTRACK_TOKEN: ***
PERL_TEST_VERSION: 5.36.0
TEST_PERL_MODULES: Mojolicious HURRICUP/Devel-Camelcadedb-v[2](https://github.com/Camelcade/Perl5-IDEA/actions/runs/5295899879/jobs/9586665373#step:5:2)02[3](https://github.com/Camelcade/Perl5-IDEA/actions/runs/5295899879/jobs/9586665373#step:5:3).1.tar.gz Devel::Cover JSON App::Prove::Plugin::PassEnv TAP::Formatter::Camelcade Devel::NYTProf Perl::Tidy Perl::Critic B::Debug Types::Serialiser
PERL_CONFIGURATORS: LOCAL_ASDF
JAVA_HOME: /opt/hostedtoolcache/Java_Corretto_jdk/17.0.7.7.1/x6[4](https://github.com/Camelcade/Perl5-IDEA/actions/runs/5295899879/jobs/9586665373#step:5:4)
JAVA_HOME_17_X[6](https://github.com/Camelcade/Perl5-IDEA/actions/runs/5295899879/jobs/9586665373#step:5:6)4: /opt/hostedtoolcache/Java_Corretto_jdk/1[7](https://github.com/Camelcade/Perl5-IDEA/actions/runs/5295899879/jobs/9586665373#step:5:7).0.7.7.1/x64
Updating asdf in ASDF_DIR "/home/runner/.asdf" on branch "master"
/usr/bin/git remote set-branches origin master
/usr/bin/git fetch --depth 1 origin master
From https://github.com/asdf-vm/asdf
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
/usr/bin/git checkout -B master origin
fatal: 'origin' is not a commit and a branch 'master' cannot be created from it
Error: Action failed with error Error: The process '/usr/bin/git' failed with exit code 12[8](https://github.com/Camelcade/Perl5-IDEA/actions/runs/5295899879/jobs/9586665373#step:5:8)
```

Contributor guide

Open the contributing guide

Research direction

Start with the asdf-vm/actions/setup@v2.2.0 action and the linked CI run, focusing on the shown git fetch and checkout sequence. Reproduce the setup failure and determine why checkout uses 'origin' rather than a commit or branch reference; done means the action completes setup successfully in CI.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
ci-cd, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.