Skip to content

fix: stack describe falls back to the default profile; add --profile/-p - #4

Open
sanayasfp wants to merge 1 commit into
mainfrom
fix/describe-default-profile
Open

sanayasfp wants to merge 1 commit into
mainfrom
fix/describe-default-profile

Conversation

@sanayasfp

Copy link
Copy Markdown
Owner

Why

Outside a project, stack describe failed with "no stack.toml found in this directory or any parent" even when a default profile was set. You also had no way to describe a named profile from describe itself.

What

  • stack describe with no name and no stack.toml now describes the default profile. If there is no default profile either, it still errors, and the message now mentions --profile.
  • New --profile / -p <name> flag. It conflicts with the positional project name.
  • Manifest::find_and_load returns a typed ManifestNotFound error, so only a missing manifest triggers the fallback. A broken stack.toml still reports its parse error.

Tests

  • CLI parsing for -p/--profile and the conflict with name.
  • A parse error is not reported as ManifestNotFound.
  • cargo build and cargo test pass (97 tests).

Closes #1
Closes #2

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant