Skip to content

cabal user-config behaves inconsistently when a non-default config file is specified #2679

Closed

Description

@sebright

cabal --config-file=my-config user-config update merges my-config with a newly generated config file and then writes it to ~/.cabal/config . It seems like user-config should write to the same file that it merges, whether it is my-config or ~/.cabal/config.

Modifying user-config so that it writes to the config file specified by CABAL_CONFIG or --config-file has the added benefit of allowing the feature's tests to write to a config file that is not in the home directory. Then the tests can set CABAL_CONFIG instead of HOME in order to run on Windows (Issue #2678).

Would you like a pull request allowing user-config to write to a non-default config file?

Activity

  1. 23Skidoo commented on Jun 25, 2015

    @23Skidoo
    Member

    Would you like a pull request allowing user-config to write to a non-default config file?

    Sure!

  2. sebright commented on Oct 11, 2015

    @sebright
    CollaboratorAuthor

    Fixed by #2684.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions