Skip to content

Apply global config to all packages - #5142

Merged
23Skidoo merged 1 commit into
haskell:masterfrom
alexbiehl:pr/legacy-conf-all-packages
Feb 14, 2018
Merged

23Skidoo merged 1 commit into
haskell:masterfrom
alexbiehl:pr/legacy-conf-all-packages

Conversation

@alexbiehl

Copy link
Copy Markdown
Member

I think this was an oversight from 32ff1ca when we introduced projectConfigAllPackages.

Without this patch convertLegacyGlobalConfig considers global configuration (e.g. ~/.cabal/config) only for packages that are local to the project. This patch puts global configuration into projectConfigAllPackages to make sure it is applied to all packages whether they are project local or not.

Please include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • If the change is docs-only, [ci skip] is used to avoid triggering the build bots.

Please also shortly describe how you tested your change. Bonus points for added tests!

packages whether they are local to the project or not.
@23Skidoo

Copy link
Copy Markdown
Member

/cc @dcoutts

projectConfigShared = configAllPackages,
projectConfigLocalPackages = configLocalPackages,
projectConfigBuildOnly = configBuildOnly
projectConfigBuildOnly = configBuildOnly,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I reordered the fields to match declaration order in Distribution.Client.ProjectConfig.Types)

@alexbiehl
alexbiehl requested a review from hvr February 13, 2018 12:09
@23Skidoo

Copy link
Copy Markdown
Member

Makes sense.

@alexbiehl alexbiehl added the cabal-install: v2-build system Affecting v2-build and related commands that use v2-architecture (aka "nix local builds"). label Feb 13, 2018
@alexbiehl alexbiehl mentioned this pull request Feb 13, 2018
4 tasks done
@23Skidoo

Copy link
Copy Markdown
Member

Downstream Travis is flaky today...

@23Skidoo
23Skidoo merged commit 669fe7a into haskell:master Feb 14, 2018
@23Skidoo

Copy link
Copy Markdown
Member

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cabal-install: v2-build system Affecting v2-build and related commands that use v2-architecture (aka "nix local builds").

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants