You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
specerror.NewError(specerror.PathFormatOnWindows, fmt.Errorf("root.path is %q, but it MUST be a volume GUID path when target platform is windows", v.spec.Root.Path), rspec.Version))
188
+
}
189
+
190
+
ifv.spec.Root.Readonly {
191
+
errs=multierror.Append(errs,
192
+
specerror.NewError(specerror.ReadonlyOnWindows, fmt.Errorf("root.readonly field MUST be omitted or false when target platform is windows"), rspec.Version))
193
+
}
194
+
195
+
return
196
+
}
197
+
181
198
absBundlePath, err:=filepath.Abs(v.bundlePath)
182
199
iferr!=nil {
183
200
errs=multierror.Append(errs, fmt.Errorf("unable to convert %q to an absolute path", v.bundlePath))
specerror.NewError(specerror.ArtifactsInSingleDir, fmt.Errorf("root.path is %q, but it MUST be a child of %q", v.spec.Root.Path, absBundlePath), rspec.Version))
219
236
}
220
237
221
-
ifv.platform=="windows" {
222
-
ifv.spec.Root.Readonly {
223
-
errs=multierror.Append(errs,
224
-
specerror.NewError(specerror.ReadonlyOnWindows, fmt.Errorf("root.readonly field MUST be omitted or false when target platform is windows"), rspec.Version))
0 commit comments