-
Notifications
You must be signed in to change notification settings - Fork 30
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
Squash bug that removes /usr/local/bin from PATH when eicrecon-this.sh is sourced #436
Conversation
This is failing on the clang-tidy test. There is a message:
This appears to be the hash being passed into git diff in the command:
@wdconinc can you give any insight on this? |
Yeah, clang-tidy needs a fetch-depth of |
The clang-tidy fix included in #437. I'll update this branch when that's merged. |
ff0d565
to
186164c
Compare
@faustus123 Still doesn't quite do what i expect it to do. I followed the steps as listed below
At this point, I expect to use the custom install instead of the eicrecon from the container when I run:
However, this still picks up the executible and plugins from the container as shown by the logs. What i expect to happen is it runs eicrecon from install/bin/eicrecon and loads the plugins from install/lib/EICrecon/plugins under my custom EICrecon directory. At this point, I found that I need to do:
However, this still picks up the executible from the container as shown by the logs but at least the plugins and flag values are picked up from the right custom location. My non-elegant patch has been to use an additional environment setting script under install/bin that does
before running
This picks up the plugins, reco flags and executible all from the custom location without touching anything else in the container. May be it's ok to leave this as it is now and make it explicit in documentation that to run custom you need to use ./ prior to the executibles. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving this for now. Please see the last comment.
Thank Sakib. I did not get back to trying to fix the The expectation is that after all of the recent work done to align the C++ defaults with what was put into the reco_flags scripts, one would just run
This should give the behavior you're expecting. |
Briefly, what does this PR introduce?
This unsets the ROOTSYS envar just before sourcing
jana-this.sh
andthisroot.sh
in theeicrecon-this.sh
script.This addresses issue #407 and replaces PR #425
NOTE: A side effect of this fix is that ROOTSYS (and friends) will be set to the long, spack-generated directory name instead of
/usr/local
. This should not adversely affect things in eic-shell since it is the same ROOT build. It may, however, confuse users who see/expect ROOTSYS to be unaffected by sourcingeicrecon-this.sh
What kind of change does this PR introduce?
Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
No
Does this PR change default behavior?
No