expand relative path ~/.config/vikunja to $HOME/.config/vikunja #146
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "funkythings/api:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
viper
doesn't expand~
by default, resulting in malformed config path:According to this issue however, env variable expansion works, which allows for
AddConfigPath("$HOME/.config/vikunja")
, with one exception: Doesn't work on windows. Works on Linux, but vikunja has to work on Windows, too? I'm confused because there a windows download on your file server, but all paths are clearly only linux compatible. See #147: a windows compatible version (Can't actually test on windows machine)For a portable version,
AddConfigPath(path.Join(os.UserHomeDir(), ".config", "vikunja").String())
or similar will have to be used.Tested successfully on Ubuntu 18.04 64 bit
Checklist
go mod vendor
make do-the-swag
)I am not sure what the makefile does when running
make build
and how go manages dependencies, but I did not touchmod.go
, while it has changed (on local computer for now, can push if necessary) with this diff:Should I push this change as well?
Yes, that is something that needs to be fixed.
It's interesting it changed, but should be fine. You did not change any dependency usage.
This is still marked as WIP, can I merge this?
WIP: expand relative path ~/.config/vikunja to $HOME/.config/vikunjato expand relative path ~/.config/vikunja to $HOME/.config/vikunjaRan
go mod tidy && go mod vendor
on both branches (this pull and #147) and committed the resultsAwesome, thanks!