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

eups tries to declare packages in the wrong place #86

Open
r-owen opened this issue Jan 19, 2016 · 0 comments
Open

eups tries to declare packages in the wrong place #86

r-owen opened this issue Jan 19, 2016 · 0 comments

Comments

@r-owen
Copy link
Collaborator

r-owen commented Jan 19, 2016

eups insists on creating ~/.eups/ups_db when the startup script is run and then sometimes on using it, even when it is not wanted. I finally made it unwritable so I could track down when it was being used.

I have found one reproducible instance (on El Capitan using Python 2.7): when I try to declare and tag a package at the same time:

localhost$ eups declare -r . skymap git -t rowen
eups declare: [Errno 13] Permission denied: '/Users/rowen/.eups/ups_db/skymap'

If I declare the package without tagging first, then all works as desired, including being able to then tag it (using the ugly syntax shown or the cleaner eups declare skymap git -t rowen):

localhost$ eups declare -r . skymap git
localhost$ eups list -v skymap
   2015_10.0-4-g65a3ccf /Users/rowen/UW/LSST/lsstsw/stack /Users/rowen/UW/LSST/lsstsw/stack/DarwinX86/skymap/2015_10.0-4-g65a3ccf   current b1841
   git        /Users/rowen/UW/LSST/lsstsw/stack /Users/rowen/UW/LSST/lsstsw/build/skymap               
localhost$ eups declare -r . skymap git -t rowen
localhost$ eups list -v skymap
   2015_10.0-4-g65a3ccf /Users/rowen/UW/LSST/lsstsw/stack /Users/rowen/UW/LSST/lsstsw/stack/DarwinX86/skymap/2015_10.0-4-g65a3ccf   current b1841
   git        /Users/rowen/UW/LSST/lsstsw/stack /Users/rowen/UW/LSST/lsstsw/build/skymap                user:rowen

This is a problem for people who are trying to use eups to manage more than one stack, since the products from one stack will leak into another. I assume there is some important use case for ~/.eups/ups_db but if not, it would be nice to lose it once and for all. If so, it would be nice to be able to disable it in a way that is more direct than making it unwritable.

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

No branches or pull requests

1 participant