uselagoon / uselagoon/lagoon-cli

Lagoon CLI config files in unexpected location

Open
#274 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2023-rewrite
Dominant language
Go
Stars
28
Forks
14
Avg merge
1d 2h
Merged PRs (30d)
1

Description

Describe the bug
~/.lagoon.yml and ~/.lagoon.update is non-standard and makes it difficult to find lagoon-cli configuration files.

To Reproduce
Steps to reproduce the behavior:

  1. Run lagoon-cli.
  2. See ~/.lagoon.yml and ~/.lagoon.update appear.

Expected behavior
According to the XDG Base Directory Spec.:

  • .lagoon.yml should be in e.g. $XDG_CONFIG_HOME/lagoon/config.yml
  • .lagoon.update should be in e.g. $XDG_STATE_HOME/lagoon/update

It would be nice if lagoon-cli followed this convention 🙂

Screenshots
n/a

Desktop (please complete the following information):

  • OS: Debian Linux

Additional context
There's a nice library that takes care of this in a cross platform way here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating lagoon-cli's handling of the ~/.lagoon.yml and ~/.lagoon.update paths, then reproduce the behavior on Debian Linux. Compare the implementation with the XDG Base Directory Spec and the linked adrg/xdg library. Done means configuration uses $XDG_CONFIG_HOME/lagoon/config.yml and update state uses $XDG_STATE_HOME/lagoon/update.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.