summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2020-06-28 23:58:51 -0700
committerGitHub <noreply@github.com>2020-06-29 08:58:51 +0200
commite6bb8360d04ac4204d7df5fdb688df68b21bb99d (patch)
tree0dd01e1659de1a427d607fb504a56f37f2160384
parentd27ea3be1c746c9fb670f82a05c71d971da41400 (diff)
downloadspack-e6bb8360d04ac4204d7df5fdb688df68b21bb99d.tar.gz
spack-e6bb8360d04ac4204d7df5fdb688df68b21bb99d.tar.bz2
spack-e6bb8360d04ac4204d7df5fdb688df68b21bb99d.tar.xz
spack-e6bb8360d04ac4204d7df5fdb688df68b21bb99d.zip
Fix indentation in containerize example (#17228)
[george.hartzell@172-16-193-97 spack-explore-docker]$ spack containerize Running `spack containerize` with the example `spack.yaml` file fails with an error that ends like so: ``` [...] File "/local_scratch/hartzell/tmp/spack-explore-docker/lib/spack/external/ruamel/yaml/scanner.py", line 165, in need_more_tokens self.stale_possible_simple_keys() File "/local_scratch/hartzell/tmp/spack-explore-docker/lib/spack/external/ruamel/yaml/scanner.py", line 309, in stale_possible_simple_keys "could not find expected ':'", self.get_mark()) ruamel.yaml.scanner.ScannerError: while scanning a simple key in "/local_scratch/hartzell/tmp/spack-explore-docker/spack.yaml", line 26, column 1 could not find expected ':' in "/local_scratch/hartzell/tmp/spack-explore-docker/spack.yaml", line 28, column 5 ``` Indenting the block string fixes the problem for me. CentOS 7, ``` $ spack --version 0.14.2-1529-ec58f28c2 ```
-rw-r--r--lib/spack/docs/containers.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/docs/containers.rst b/lib/spack/docs/containers.rst
index 2ca25b7207..fe678fd76d 100644
--- a/lib/spack/docs/containers.rst
+++ b/lib/spack/docs/containers.rst
@@ -165,7 +165,7 @@ of environments:
# Extra instructions
extra_instructions:
final: |
- RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][gromacs]\[$(tput setaf 2)\]\u\[$(tput sgr0)\]:\w $ \[$(tput sgr0)\]"' >> ~/.bashrc
+ RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][gromacs]\[$(tput setaf 2)\]\u\[$(tput sgr0)\]:\w $ \[$(tput sgr0)\]"' >> ~/.bashrc
# Labels for the image
labels: