Skip to content

Extra blank lines introduced with config set #5861

Closed
@philderbeast

Description

@philderbeast

Follow up on #5813. With the current ./stack.yaml in this project that has a multiple line string with blank lines, I'm seeing extra blank lines introduced. Please don't do that.

> cat stack.yaml
# GHC 9.2.4
resolver: nightly-2022-09-05

packages:
- .

drop-packages:
# See https://github.com/commercialhaskell/stack/pull/4712
- cabal-install

docker:
  enable: false
  repo: psibi/alpine-haskell-stack:9.2.4

nix:
  # --nix on the command-line to enable.
  packages:
  - zlib
  - unzip

flags:
  stack:
    developer-mode: true

ghc-options:
  "$locals": -fhide-source-paths

user-message: |
  If building Stack on macOS, you are advised to use stack-macos.yaml as the
  project-level configuration file, and command:

  stack --stack-yaml stack-macos.yaml build

  See that configuration file for further information.
cabal run stack -- config set install-ghc true
git diff
diff --git a/stack.yaml b/stack.yaml
index 13b905c2..51e2782e 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -23,12 +23,15 @@ flags:
     developer-mode: true

 ghc-options:
-  "$locals": -fhide-source-paths
+  $locals: -fhide-source-paths

 user-message: |
   If building Stack on macOS, you are advised to use stack-macos.yaml as the
   project-level configuration file, and command:

+
+
   stack --stack-yaml stack-macos.yaml build

   See that configuration file for further information.
+install-ghc: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions