set "app_root" from environment variables
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
Research direction
Start at the Load function in refresh/config.go and inspect how YAML populates Configuration.AppRoot. Verify environment expansion for the app_root value, including the documented $GOPATH and $APP_PATH form; done means loading a configuration resolves those variables correctly.
Written by the indexing model from the issue text.
Description
Hey,
I think it would be nice to be able to set the app_root from environment variables like this:
app_root: "$GOPATH/src/$APP_PATH"
It should be pretty easy to implement this, there just would need to be a call to os.ExpandEnv(c.AppRoot) at the end of the Load function. E.g.:
func (c *Configuration) Load(path string) error {
data, err := ioutil.ReadFile(path)
if err != nil {
return err
}
err = yaml.Unmarshal(data, c)
if err != nil {
return err
}
c.AppRoot = os.ExpandEnv(c.AppRoot)
return err
}
- Dominant language
- Go
- Stars
- 196
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from markbates/refresh
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
codesign for osxOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
init not working on macOSPossibly taken @hlubek claimed this 2441 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in markbates/refresh
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
JuliusBrussee/caveman#1189 ·
Maintainers usually reply within 1 day
-
agent-review-finding chore
Difficulty 2/5 Half a day Newbie friendliness 78/100
jordansmall/spindrift#4497 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug from-studio
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
esengine/DeepSeek-Reasonix#12044 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100