Skip to content

ghcup config set removes all comments from config file #1288

@0cjs

Description

@0cjs

My standard ghcup config file (shared amongst many machines via dot-home) includes comments describing what the various changes from the default config do, the reasoning behind them, and giving links to further documentation.

Any use of ghcup config set wipes my entire configuration file and replaces it with one that, while does include my configuration changes from the defaults, also includes the entire default configuration, re-orders everything, and removes all my comments.

ghcup init is already available for people who want a complete config file using defaults, as are sample versions in the documentation (that also indicate the defaults), so there's no need to add all of these to an existing configuration file.

And removing my comments is just annoying.

ghcup config set should simply modify the existing configuration file in the most minimal way possible to implement the requested change, and not wipe out other information in the configuration file.

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