Skip to content

Commit 44f2dbd

Browse files
fix(ci): pin quasar-cli install to rev 3d6fb0d8 (pre-PR solana-developers#198)
Quasar PR solana-developers#198 "idl-redesign-clean" (merged 2026-05-03, rev 096c8f7c) regressed `quasar build` for flat-layout projects. The new IDL flow chdirs to `crate_path.parent()`, which evaluates to an empty PathBuf when the program crate is at the project root (src/lib.rs in `.`), producing a posix_spawn child chdir("") that fails with ENOENT and a bare "Anyhow error" before any compilation begins. This migration was written against quasar rev 3d6fb0d8 (the merge of PRs solana-developers#195 + solana-developers#196 that the migration targets). Pin the CI install to that rev so the example API surface matches the CLI's expectations. Unpin once upstream lands a fix that handles the flat layout that quasar's own `quasar init` produces. Verified locally: 3d6fb0d8 builds basics/transfer-sol/quasar in 2-5s with no edits to the example. 096c8f7c fails it instantly with the "Anyhow error" CI was reproducing.
1 parent 8eff4a2 commit 44f2dbd

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/quasar.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,16 @@ jobs:
199199
with:
200200
solana-cli-version: stable
201201
- name: Install Quasar CLI
202-
run: cargo install --git https://github.com/blueshift-gg/quasar quasar-cli --locked
202+
# Pinned to quasar rev 3d6fb0d8 (the HEAD this migration was written
203+
# against, immediately after PRs #195 + #196). The next merged PR
204+
# (#198 "idl-redesign-clean", rev 096c8f7c) regressed `quasar build`
205+
# for flat-layout projects: the new IDL flow chdirs to
206+
# `crate_path.parent()` which evaluates to an empty PathBuf when
207+
# the program crate is at the project root (src/lib.rs in `.`),
208+
# causing posix_spawn child chdir("") to fail with ENOENT before
209+
# any compilation begins. Symptom in CI is a bare "Anyhow error".
210+
# Unpin once upstream lands a fix that handles the flat layout.
211+
run: cargo install --git https://github.com/blueshift-gg/quasar --rev 3d6fb0d8 quasar-cli --locked
203212
- name: Build and Test with Stable
204213
run: |
205214
source build_and_test.sh

0 commit comments

Comments
 (0)