juju panic()s when pwd is not readable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Martin Packman |
Bug Description
root@ubuntu:~# sudo -u tycho juju
panic: version: cannot read forced version: open FORCE-VERSION: permission denied
goroutine 1 [running]:
launchpad.
/build/
launchpad.
/build/
launchpad.
/build/
main.init()
/build/
goroutine 2 [runnable]:
root@ubuntu:~# pwd
/root
root@ubuntu:~# juju --version
1.13.3-raring-amd64
Related branches
- Juju Engineering: Pending requested
-
Diff: 17 lines (+3/-3)1 file modifiedversion/version.go (+3/-3)
Changed in juju-core: | |
assignee: | nobody → Martin Packman (gz) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in juju-core: | |
importance: | Medium → High |
milestone: | none → 1.17.0 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
status: | Fix Committed → Fix Released |
milestone: | 1.17.0 → 1.16.0 |
I'm not sure what FORCE-VERSION mechanism is actually used for, but the implementation seems odd to me.
Surely a FORCE-VERSION option would make more sense as a file in the user's .juju directory or an environment variable?