272e8e62d42aefa3d2547ae9108858ffb7c2d172,src/python/pants/backend/jvm/tasks/bundle_create.py,BundleCreate,bundle,#BundleCreate#Any#Any#,167

Before Change


      fileset_empty = True
      for path, relpath in bundle.filemap.items():
        bundle_path = os.path.join(bundle_dir, relpath)
        if os.path.exists(path):
          safe_mkdir(os.path.dirname(bundle_path))
          os.symlink(path, bundle_path)
          fileset_empty = False

      if fileset_empty:
        raise TaskError("In target {}, bundle index {} of "bundles" field does not match any files.".format(
          app.address.spec, bundle_counter))

After Change


      if dir_count == 1 and file_count == 0:
        // When this deprecation finishes, we should remove symlinking of directories into the
        // bundle (which implicitly includes their contents), and instead create them using mkdir.
        spec = os.path.relpath(bundle.filemap.keys()[0], get_buildroot())
        deprecated_conditional(
            lambda: True,
            "1.5.0.dev0",
            "default recursive inclusion of files in directory",
            """The bundle filespec `{spec}` corresponds to exactly one directory: if you"d like to """
            """continue to recursively include directory contents in future versions, please switch """
            """to a recursive glob like `{fixed_spec}`.""".format(
              spec=spec,
              fixed_spec=os.path.join(spec, "**", "*"),
            )
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 272e8e62d42aefa3d2547ae9108858ffb7c2d172
Time: 2017-05-25
Author: stuhood@twitter.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle


Project Name: pantsbuild/pants
Commit Name: 272e8e62d42aefa3d2547ae9108858ffb7c2d172
Time: 2017-05-25
Author: stuhood@twitter.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle


Project Name: pantsbuild/pants
Commit Name: ce56ed29d8846c82e611376c79d980e07cc9975c
Time: 2019-09-04
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks/coverage/plugin.py
Class Name: ChrootRemappingPlugin
Method Name: find_executable_files


Project Name: pantsbuild/pants
Commit Name: 6ffda41d1538a5f8e6eab953346a95505c84c40c
Time: 2014-01-17
Author: travis@twitter.com
File Name: src/python/twitter/pants/python/resolver.py
Class Name: MultiResolver
Method Name: __init__