GoogleContainerTools / GoogleContainerTools/jib

Timestamped Snapshots are not well respected with jib

Open
#4,277 0 comments 0 reactions 0 assignees View on GitHub
priority:p3 type: feature request
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

**Environment**:

- *Jib version:* 3.4.3
- *Build tool:* maven
- *OS:* Mac

**Description of the issue**:
When a timestamped version of a snapshot dependency is used, jib includes the jar representing the snapshot which is usually the latest timestamp, hence not being able to make a reproducible build.

Example:
```xml

com.example
artifact
4.127-20240621.201418-5

```

In this case from debug logs I get:
```
Snapshot dependencies:
[DEBUG] /.m2/repository/com/example/artifact/4.127-SNAPSHOT/artifact-4.127-SNAPSHOT.jar
```

This will represent the latest version of the file.

**Expected behavior**:
Instead of generic snapshot, timestamped snapshot should be picked and added to the classpath

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.