@@ -660,6 +660,7 @@ By default, Stack obtains the dictionary from
660
660
[stack-setup-2.yaml](https://github.com/commercialhaskell/stackage-content/raw/master/stack/stack-setup-2.yaml).
661
661
662
662
The `setup-info` dictionary is constructed in the following order :
663
+
663
664
1. `setup-info` in the YAML configuration - inline configuration
664
665
2. `--setup-info-yaml` command line arguments - URLs or paths. Multiple
665
666
locations may be specified.
@@ -687,7 +688,7 @@ supports the following pairs in the format of the `setup-info` field:
687
688
|Operating system|I386 arch|X86_64 arch|Other machine architectures |
688
689
|----------------|---------|-----------|------------------------------------------------------------|
689
690
|Linux |linux32 |linux64 |AArch64 : linux-aarch64, Arm: linux-armv7, Sparc: linux-sparc|
690
- |OSX |macos |macos | |
691
+ |OSX |macosx |macosx | |
691
692
|Windows |windows32|windows64 | |
692
693
|FreeBSD |freebsd32|freebsd64 |AArch64 : freebsd-aarch64 |
693
694
|OpenBSD |openbsd32|openbsd64 | |
@@ -721,9 +722,10 @@ default. Specifying this configuration **does not** prevent the default
721
722
from being consulted as a fallback. If, however, you need to **replace** the
722
723
default `setup-info` dictionary, use the following :
723
724
724
- ` ` ` yaml
725
+ ~~~ yaml
725
726
setup-info-locations : []
726
- ` ` `
727
+ ~~~
728
+
727
729
# ## setup-info-locations
728
730
729
731
(Since 2.3)
@@ -736,15 +738,15 @@ tool - `('Tool', 'Platform', 'Version')` - takes precedence. For example, you
736
738
can extend the default tools, with a fallback to the default `setup-info`
737
739
location, as follows :
738
740
739
- ` ` ` yaml
741
+ ~~~ yaml
740
742
setup-info-locations :
741
743
- C:/stack-offline/my-stack-setup.yaml
742
744
- relative/inside/my/project/setup-info.yaml
743
745
- \\smbShare\stack\my-stack-setup.yaml
744
746
- http://stack-mirror.com/stack-setup.yaml
745
747
# Fallback to the default location
746
748
- https://github.com/commercialhaskell/stackage-content/raw/master/stack/stack-setup-2.yaml
747
- ` ` `
749
+ ~~~
748
750
749
751
Stack only refers to the default `setup-info` location if no locations are
750
752
specified in the `setup-info-locations` configuration or on the command line
@@ -753,15 +755,16 @@ using the `--setup-info-yaml` option.
753
755
For example, both of the following will cause `stack setup` not to consult the
754
756
default `setup-info` location :
755
757
756
- ` ` ` yaml
758
+ ~~~ yaml
757
759
setup-info-locations :
758
760
- C:/stack-offline/my-stack-setup.yaml
759
- ` ` `
761
+ ~~~
762
+
760
763
and
761
764
762
- ` ` ` yaml
765
+ ~~~ yaml
763
766
setup-info-locations : []
764
- ` ` `
767
+ ~~~
765
768
766
769
Relative paths are resolved relative to the `stack.yaml` file (either the one in
767
770
the local project or the global `stack.yaml`).
@@ -771,24 +774,27 @@ or 7z). This allows vendoring the tools inside a monorepo (a single respository
771
774
storing many projects). For example :
772
775
773
776
Directory structure :
774
- ` ` `
777
+
778
+ ~~~
775
779
- src/
776
780
- installs/
777
781
- my-stack-setup.yaml
778
782
- 7z.exe
779
783
- 7z.dll
780
784
- ghc-9.2.3.tar.xz
781
785
- stack.yaml
782
- ` ` `
786
+ ~~~
783
787
784
788
In the project's `stack.yaml` :
785
- ` ` ` yaml
789
+
790
+ ~~~yaml
786
791
setup-info-locations :
787
792
- installs/my-stack-setup.yaml
788
- ` ` `
793
+ ~~~
789
794
790
795
In `installs/my-stack-setup.yaml` :
791
- ` ` ` yaml
796
+
797
+ ~~~yaml
792
798
sevenzexe-info :
793
799
url : " installs/7z.exe"
794
800
799
805
windows64 :
800
806
9.2.3 :
801
807
url : " installs/ghc-9.2.3.tar.xz"
802
- ` ` `
808
+ ~~~
803
809
804
810
# ## pvp-bounds
805
811
0 commit comments