Skip to content

Config file for rv #575

@deivid-rodriguez

Description

@deivid-rodriguez

We've been delaying to get a configuration file in place for rv, but it's about time we add it.

Format

We want to use https://kdl.dev/.

Location

We'll probably want both a project specific location, (like one of rv.kdl, .config/rv.kdl, or .config/rv/rv.kdl) and a global location like one of ~/.rv.kdl, ~/.config/rv.kdl, or ~/.config/rv/rv.kdl).

Schema

The stuff that I recall has come up so far is

rv {
  // ruby version to be used by default when no tool files specify any version
  ruby "4.0"

  // path where `rv ci` installs gems to, and where `rv run` looks for installed gems
  gem-home "vendor/bundle"

  // to be defined in https://github.com/spinel-coop/rv/pull/562
  update-mode [check-for-updates, auto-install, none] 
}

There's also source credential configuration but we may want to keep those somewhere else, at least the credentials.

@indirect mentioned https://github.com/rust-cli/config-rs as potentially helpful (particularly to deal with the different level of configurations I guess, and backing it up with ENV variables, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions