mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 10:31:35 +00:00
linuxkit pkg: make ":latest" for non-git packages explicit
Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
991bfd2794
commit
ba3cc2fc6d
@ -198,11 +198,11 @@ func (p Pkg) ReleaseTag(release string) (string, error) {
|
||||
|
||||
// Tag returns the tag to use for the package
|
||||
func (p Pkg) Tag() string {
|
||||
r := p.org + "/" + p.image
|
||||
if p.hash != "" {
|
||||
r += ":" + p.hash
|
||||
t := p.hash
|
||||
if t == "" {
|
||||
t = "latest"
|
||||
}
|
||||
return r
|
||||
return p.org + "/" + p.image + ":" + t
|
||||
}
|
||||
|
||||
// TrustEnabled returns true if trust is enabled
|
||||
|
Loading…
Reference in New Issue
Block a user