sbt / sbt/sbt-github-actions

ThisBuild / githubWorkflowBuildSbtStepPreamble := List("-v") breaks

Open
#229 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.