mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-03 05:13:36 +09:00
flake.lock: update flake-checks, nixpkgs, treefmt-nix
This commit is contained in:
committed by
Kristoffer Dalby
parent
53113e2a67
commit
14daea7622
@@ -111,8 +111,8 @@ func PullWithAuth(pool *dockertest.Pool, imageRef string) error {
|
||||
}
|
||||
|
||||
func splitImageRef(ref string) (string, string) {
|
||||
if i := strings.LastIndex(ref, ":"); i >= 0 {
|
||||
return ref[:i], ref[i+1:]
|
||||
if before, after, ok := strings.CutLast(ref, ":"); ok {
|
||||
return before, after
|
||||
}
|
||||
|
||||
return ref, "latest"
|
||||
|
||||
Reference in New Issue
Block a user