-
Notifications
You must be signed in to change notification settings - Fork 21
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
avoiding overlay of production and development denvs #1472
Comments
For the medium term, I've added a warning to the getting started area informing anyone getting started to avoid running |
I'm cross posting from #1505 (comment) This happened to one of my new student now
What I'd like is to have a warning that there is a This is what he saw
while he had a
Deleting |
I've seen the following confusion happen frequently (at least twice to my knowledge over the last few weeks which is too high in my opinion). The person ends up in a state where their filesystem looks like
This leads to the very confusing situation where
denv fire
can work from within ldmx-sw even if its not built (since it reads from the production image denv) whilejust fire
will not work since it is using the development image and ldmx-sw is not built yet.Short-Term Solution
If you find yourself in this state, delete the production image denv within ldmx-sw and (if you still need it), re-create it in another directory.
Long-Term Solution
The solution is to keep these two denvs separate. Literally any other directory other than
ldmx-sw
can be used for theldmx/pro
denv so maybe this can be resolved by updating the notes on the website to emphasize this point?We could update the
init
recipe to specifically make sure that no denv is already created erroneously within ldmx-sw.ldmx-sw/justfile
Lines 85 to 100 in 6c08a49
I'd like to avoid a hardcoded check within
denv
since I use it for other (non-LDMX or ldmx-sw) projects. Another idea is to avoid keeping the development denv outside of ldmx-sw. This choice is a relic of theldmx
suite of bash functions and could be avoided with howdenv
is designed. Putting the ldmx-sw denv within ldmx-sw would then help avoid this issue - you would need to overwrite the denv in ldmx-sw to get into a broken state like this anddenv
warns you before you would do so.The text was updated successfully, but these errors were encountered: