cdist/version.py needs rw permissions #262
Labels
No Label
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#262
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Created by: tositrino
cdist/version.py needs rw permissions
to update the version build-helper writes into
cdist/version.py
.this fails if one calls cdist from a system wide cdist installation as arbitrary user without having write permission on cdist/version.py.
to prevent this one can do
IMHO an application should never have to write to its own installation
path after installation, it should always use places or mechanism offered
by the OS.
So my proposed fix would be the patch below and the advice to run
after each installation or cdist version change to have the correct version reported.
ths
--- proposed patch
Created by: telmich
I may have misunderstood you: Are you running a multi user installation from a checkout? If so, this is definitely not intented :-)
If multiple people want to run cdist from a checkout, they should probably clone it themselves.
If multiple people want to run cdist otherwise, the sysadmin shall install cdist using pip (all Linux) or aur (archlinux).
Hope this clarifies the wohlstandsproblem!
Cheers,
Nico
Created by: tositrino
Moin Nico,
yeah i know, i could do 'pip install' or maybe use the checkout and then put
scripts/cdist into my path but to cite 'bin/cdist' :
this tells me i should be able to call bin/cdist from a checkout via bin/cdist and then
i don't expect to get an error from a simple "cdist --version".
But yeah, this could be considered as a "wohlstandsproblem" but easy to fix as long
as its only the version.py.
background: i am using cdist checkouts via environment modules that are only loaded for a
single cdist run.
cheers,
thorsten
On 13/08/30 12:35 , Nico Schottelius wrote:
Created by: telmich
Hey!
version.by should not be changed nor should build-helper be involved after cdist has been installed system wide.
How did you install cdist? pip install cdist should not have brought bin/cdist to your path, but scripts/cdist and a pre-built version.py (see Makefile, release: target).
Cheers,
Nico