chore: make deps

This commit is contained in:
2025-11-11 14:18:57 +01:00
parent db7c4042d0
commit 45af67d22d
590 changed files with 22837 additions and 16387 deletions

View File

@ -1,12 +1,13 @@
package volumespec
import (
"errors"
"fmt"
"strings"
"unicode"
"unicode/utf8"
"github.com/docker/docker/api/types/mount"
"github.com/pkg/errors"
"github.com/moby/moby/api/types/mount"
)
const endOfSpec = rune(0)
@ -24,7 +25,7 @@ func Parse(spec string) (VolumeConfig, error) {
return volume, nil
}
buffer := []rune{}
var buffer []rune
for _, char := range spec + string(endOfSpec) {
switch {
case isWindowsDrive(buffer, char):
@ -32,7 +33,7 @@ func Parse(spec string) (VolumeConfig, error) {
case char == ':' || char == endOfSpec:
if err := populateFieldFromBuffer(char, buffer, &volume); err != nil {
populateType(&volume)
return volume, errors.Wrapf(err, "invalid spec: %s", spec)
return volume, fmt.Errorf("invalid spec: %s: %w", spec, err)
}
buffer = []rune{}
default: