Closed jjkoehorst closed 6 months ago
Should have checked indeed $IRODS_HOST takes over... is that preferred?
the -c
or --config
flag actually reads config from the file given. Can you double check if it really is an issue?
Did you try with setting IRODS_HOST to something else?
The result above didn't set any environmental variables.
If I set the environmental varaible IRODS_HOST
, it will overwrite configuration provided. Environmental variables have the highest priority setting configuration values in iCommands and GoCommands.
Yeah I wanted to double check
is then not the case but it is
then I just need to make sure I unset system variables on a local device when working with multiple config files. Thanks!
Yes, the priority was set to address this issue.
https://github.com/cyverse/gocommands/issues/23
Thanks for testing.
I wanted to switch from one environment to another but the -c option is ignored?
gocmd init --config ~/.irods_wur/irods_wur.json iRODS Host [unlock-icat.irods.surfsara.nl]:
While the content of this is
"irods_host": "scomp0000.wurnet.nl",
does $IRODS_HOST take over when that is set? Not sure what the official order was nowadays when you explicitly give a config file.