4980b0998e49330bec5b919469287c5c54a1784e,src/python/pants/bin/goal_runner.py,GoalRunner,setup,#GoalRunner#Any#Any#,78

Before Change



    // Load plugins and backends.
    plugins = bootstrap_options.for_global_scope().plugins
    backend_packages = bootstrap_options.for_global_scope().backend_packages
    build_configuration = load_plugins_and_backends(plugins, working_set, backend_packages)

    // Now that plugins and backends are loaded, we can gather the known scopes.
    self.targets = []

After Change



  def setup(self, options_bootstrapper, working_set):
    bootstrap_options = options_bootstrapper.get_bootstrap_options()
    global_bootstrap_options = bootstrap_options.for_global_scope()

    // The pants_version may be set in pants.ini for bootstrapping, so we make sure the user actually
    // requested the version on the command line before deciding to print the version and exit.
    if global_bootstrap_options.is_flagged("pants_version"):
      print(global_bootstrap_options.pants_version)
      self._exiter(0)

    // Get logging setup prior to loading backends so that they can log as needed.
    self._setup_logging(global_bootstrap_options)

    // Add any extra paths to python path (eg for loading extra source backends)
    for path in global_bootstrap_options.pythonpath:
      sys.path.append(path)
      pkg_resources.fixup_namespace_packages(path)

    // Load plugins and backends.
    plugins = global_bootstrap_options.plugins
    backend_packages = global_bootstrap_options.backend_packages
    build_configuration = load_plugins_and_backends(plugins, working_set, backend_packages)

    // Now that plugins and backends are loaded, we can gather the known scopes.
    self.targets = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 4980b0998e49330bec5b919469287c5c54a1784e
Time: 2015-08-14
Author: john.sirois@gmail.com
File Name: src/python/pants/bin/goal_runner.py
Class Name: GoalRunner
Method Name: setup


Project Name: pantsbuild/pants
Commit Name: a403445f62ebb316ed246b11083770613acb447f
Time: 2020-09-04
Author: greg.shuflin@toolchain.com
File Name: src/python/pants/pantsd/pants_daemon.py
Class Name: PantsDaemon
Method Name: _pantsd_logging


Project Name: pantsbuild/pants
Commit Name: b53ada312780b6686da35a0aa107c628a192982d
Time: 2020-01-13
Author: greg.shuflin@toolchain.com
File Name: src/python/pants/bin/local_pants_runner.py
Class Name: LocalPantsRunner
Method Name: _run


Project Name: pantsbuild/pants
Commit Name: 4980b0998e49330bec5b919469287c5c54a1784e
Time: 2015-08-14
Author: john.sirois@gmail.com
File Name: src/python/pants/bin/goal_runner.py
Class Name: GoalRunner
Method Name: setup