Skip to content

Commit d987f0b

Browse files
committed
fix(devcontainer): correctly parse feature with digest
1 parent 7b22c45 commit d987f0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devcontainer/devcontainer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ func (s *Spec) compileFeatures(fs billy.Filesystem, devcontainerDir, scratchDir
256256
ok bool
257257
)
258258
if _, featureRef, ok = strings.Cut(featureRefRaw, "./"); !ok {
259-
featureRefParsed, err := name.NewTag(featureRefRaw)
259+
featureRefParsed, err := name.ParseReference(featureRefRaw)
260260
if err != nil {
261261
return "", nil, fmt.Errorf("parse feature ref %s: %w", featureRefRaw, err)
262262
}
263-
featureRef = featureRefParsed.Repository.Name()
263+
featureRef = featureRefParsed.Context().Name()
264264
}
265265

266266
featureOpts := map[string]any{}

0 commit comments

Comments
 (0)