Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUNFILE_ROOTS Not Working As Expected #73

Closed
TekWizely opened this issue Feb 25, 2023 · 1 comment · Fixed by #74
Closed

RUNFILE_ROOTS Not Working As Expected #73

TekWizely opened this issue Feb 25, 2023 · 1 comment · Fixed by #74

Comments

@TekWizely
Copy link
Owner

TekWizely commented Feb 25, 2023

Originally posted by @xkcd386at in #67 (comment)


Hi

Apologies for the huge delay!

I tried this just now, as below, and I clearly misunderstood how RUNFILE_ROOTS is supposed to work. I'll read up a little more and try again.

Anyway here's my failed attempt to get RUNFILE_ROOTS to work:

$ run version
run 0.11.1 (build=v0.11.1 date=2023-01-24T17:09:23Z builder=goreleaser)
$ pwd
/home/x3/x/gits/run
$ cat ~/.runfile
hello:
    echo hi there
$ env|grep -i run
PWD=/home/x3/x/gits/run
$ RUNFILE_ROOTS=$HOME RUNFILE=.runfile run hello
run: ERROR: runfile '.runfile' not found: please create the file or specify an alternative

$ RUNFILE_ROOTS=$HOME run -r .runfile hello
run: ERROR: runfile '.runfile' not found: please create the file or specify an alternative

$ cd
$ RUNFILE=.runfile run hello
hi there
@TekWizely
Copy link
Owner Author

@xkcd386at you'll be glad to know you're not crazy - there is indeed a bug and it appears the originally intended logic never worked :(

Please give the new PR ( #74 ) a try if you have a minute and thanks for your patience !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant