Skip to content

RUNFILE_ROOTS Not Working As Expected #73

@TekWizely

Description

@TekWizely

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

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