Add SOURCE_DATE_EPOCH for melange builds so that image has correct created timestamp
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- git
- Domain
- build-system
Research direction
Start by locating the melange build configuration for wolfictl and inspect how image creation metadata is produced. Use the proposed git log -1 --pretty=%ct value for SOURCE_DATE_EPOCH, then verify the resulting image's .created value with the crane config command and jq shown in the issue.
Written by the indexing model from the issue text.
Description
Currently the images with melange builds (i.e. wolfictl) have a created timestamp matching the last built apk:
$ crane config ghcr.io/wolfi-dev/melange:latest@sha256:0cf85235ed98ad83f5d480210db8a8b3d513298d60aa5c56fd137920a69d4924 | jq -r .created
2023-06-06T21:13:45Z
we should set the SOURCE_DATE_EPOCH appropriately during the melange build so that this timestamp matches the last commit to the tool used (for example using git log -1 --pretty=%ct)
- Dominant language
- HCL
- Stars
- 28
- Forks
- 25
- Avg merge
- 4d 31m
- Merged PRs (30d)
- 6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wolfi-dev/tools
-
bug needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enhancement needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oSoWoSo/vOid_Community_repOsitory#147 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
agentic-workflows cascade-suspected
Difficulty 1/5 Under an hour Newbie friendliness 88/100