Coder Social home page Coder Social logo

Comments (5)

jameslan avatar jameslan commented on May 16, 2024

Note that these two files are not in META-INF directory

from bazel-common.

netdpb avatar netdpb commented on May 16, 2024

That part of the script merges files that appear in more than one JAR's META-INF directory by concatenating them, as long as you pass the right argument to the rule's merge_meta_inf_files parameter.

For some reason more than one of your JARs contains an org/xerial/snappy/VERSION file. What arguments are you passing to jarjar_library?

from bazel-common.

jameslan avatar jameslan commented on May 16, 2024

merge_meta_info_files is for files under META-INF directory, right? But this duplicate detection applied to all files.

I don't have multiple jar containing org/xerial/snappy/VERSION, the org.xerial.snappy:snappy-java:1.1.8.2 itself contains org/xerial/snappy/VERSION and org/xerial/snappy/VERSION~, along with class files.

from bazel-common.

jameslan avatar jameslan commented on May 16, 2024

Also, may I ask which command generates the file with tilde postfix? I tried the default zipper @bazel_tools//tools/zip:zipper, as well as unzip, to extract the same jar twice to the same location, but didn't find any file with tlide.

from bazel-common.

netdpb avatar netdpb commented on May 16, 2024

The -B option passed to unzip here creates backup files.

We use this to prevent you from having a bug when two JARs contain the same file.

If org.xerial.snappy:snappy-java contains a VERSION~ file, that's likely a bug in their release. It looks like it was introduced in 1.1.7, since it's not there in 1.1.4.

I'm going to close this bug because I think the underlying problem is with snappy-java.

from bazel-common.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.