You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mpilgrem
changed the title
global-project Configs (not project configs) should not be ignored.
Add global-project non-project specific configuration
Mar 11, 2024
General summary
The
global-project/stack.yaml
config properties are ignored when stack is used outside of a project, while onlyconfig.yaml
s configs are used.This doesn't allow to specify configs which should be used when outside a project, and not global configs which are applied to all projects.
Steps to reproduce
For example, specifying
setup-info-locations
inglobal-project/stack.yaml
is completely ignored.Stack version
Stack 2.13 release
Relevant source code
stack/src/Stack/Config.hs
Lines 411 to 423 in 665a184
(
PCGlobalProject, id
- should not be id, but the ConfigMonoid of theglobal-project/stack.yaml
)stack/src/Stack/Config.hs
Lines 483 to 495 in 665a184
(
ProjectAndConfigMonoid project _
- The ConfigMonoid should not be ignored)Relevant issues
Relevant: #964 was also confused by this behavior
The text was updated successfully, but these errors were encountered: