You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes introduced in #335 (particularly c7b291c) completely broke Autoproj::PackageSet$add_source_file because the init.rb scripts are no longer called before the description files are loaded.
@2maz Would you please explain why you moved ws.load_if_present(pkg_set, pkg_set.local_dir, "init.rb") from Autoproj::Ops::Configuretion#load_package_set to Autoproj::Ops::Configuretion#update_package_sets?
The change was needed as far as I remember because source.yml can declare cross-package-set ports. I.e. we need to load descriptions to make sure the init.rb files are loaded in the right order
The right fix would IMO to only load the dependency bits of the source.yml during the update and then load the full description later (and forbid declaring dependencies in the source files that are loaded with add_source_file)
Currently working around this by putting Autoproj.current_package_set.load_description_file at the end of the init.rb, while evaluating options for overriding branches depending on the value of a configuration_option.
Changes introduced in #335 (particularly c7b291c) completely broke
Autoproj::PackageSet$add_source_file
because theinit.rb
scripts are no longer called before the description files are loaded.@2maz Would you please explain why you moved
ws.load_if_present(pkg_set, pkg_set.local_dir, "init.rb")
fromAutoproj::Ops::Configuretion#load_package_set
toAutoproj::Ops::Configuretion#update_package_sets
?@doudou @2maz Can you suggest a fix?
The text was updated successfully, but these errors were encountered: