| Summary: | git fetcher should verify tags for releases | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Adrian Bunk <bunk> |
| Component: | bitbake | Assignee: | Unassigned <unassigned> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | JPEWhacker, p.lobacz, poky.bs.watcher, poky.watcher, randy.macleod, richard.purdie |
| Version: | 2.7 | ||
| Target Milestone: | Future | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Adrian Bunk
2019-04-21 16:47:59 UTC
We already have the option of adding a tag to the SRC_URI which the SRCREV would be verified against. We could then make it a general policy that the URL should have a tag specified in it for OE-Core recipes? (In reply to comment #1) > We already have the option of adding a tag to the SRC_URI which the SRCREV > would be verified against. We could then make it a general policy that the > URL should have a tag specified in it for OE-Core recipes? I am trying to use tag with git fetcher and it causes me a problem like that https://www.openembedded.org/pipermail/openembedded-core/2017-November/144422.html and my SRCREV is pointing me to the correct hash. My bitbake is 2.2 OK,I have found a solution for that issue. I need to set nobranch=1 and tag=hash_value of tag release. By hash_value for a tag release I mean the hash of the that e.g. which can be returned by `git ls-remote --tags <remote_branch> refs/tags/<tag_id>` We don't want to move away from SRCREV specifying SHA-1, but it would also be useful to be able to mark a way for the fetcher to check if a specified tag matches that SHA-1, perhaps something sort of like: SRCREV = "f971e0cd4a0ebe59fb2e8e17240399bf6901b09b" SRCREF_TAG = "v1.0.0" (although another mechanism might be preferred). This would give the best of both worlds where we are fixed to a SHA-1, but it would be clearly indicated what tag that tag is supposed to be, and we would be notified if upstream did something silly like move a tag That should be SRCREV_TAG for reference |