ThisBuild / githubWorkflowBuildSbtStepPreamble := List("-v") breaks
Open
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 199
- Forks
- 67
- Avg merge
- 6h 24m
- Merged PRs (30d)
- 3
Description
Steps
See https://github.com/eed3si9n/ifdef/pull/21
ThisBuild / githubWorkflowBuildSbtStepPreamble := List("-v")
This used to work previously.
Problem
Currently it generates
run: sbt '-v; githubWorkflowCheck'
This fails CI.
[error] Expected symbol
[error] Not a valid command: -
[error] Expected end of input.
[error] Expected '--'
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected 'addPluginSbtFile'
[error] -v
[error] ^
Expectation
Preamble with - is put outside of the quote.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the implementation of githubWorkflowBuildSbtStepPreamble and how it generates the sbt run command shown in the issue. Reproduce the failing workflow command, then verify that a preamble containing "-v" is placed outside the quoted sbt command and that CI succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, scala
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100