rock-core / autoproj

Rock (Robot Construction Kit) package-oriented build system
http://rock-robotics.org/rock-and-syskit/workspace
23 stars 21 forks source link

Exported environment is inconsistent (sometimes) #363

Open g-arjones opened 2 years ago

g-arjones commented 2 years ago

Exported environment may be different when running autoproj update --config and autoproj envsh. That happens because packages that are not yet imported are excluded from the selection during resolution when running autoproj envsh but that doesn't happen when the environment is exported after an autoproj update --config. The immediate and obvious fix for this is to just skip Package#update_environment while loading packages if a package is not checked out but I'm wondering whether the whole loading of non-imported packages (i.e dependencies processing) should be skipped as well.

@doudou What do you think?

doudou commented 2 years ago

I think what you say makes sense. Maybe just ignoring the non-imported packages would be enough...