Skip to content

ijar incorrectly handles MANIFESTs with sections #12730

@liucijus

Description

@liucijus

Description of the problem:

ijar tool incorrectly handles MANIFEST files with sections by removing empty lines and appending main attribute Target-Label after them.
I've faced this issue by trying to use java_common.stamp_jar on external jars.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Repro: https://github.com/liucijus/ijar-stamping-repro

What operating system are you running Bazel on?

Linux (Xubuntu 20.04)

What's the output of bazel info release?

release 3.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)team-Rules-JavaIssues for Java rulestype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions