github.com/SupersunnySea/draft@v0.16.0/pkg/draft/pack/repo/errors.go (about) 1 package repo 2 3 import "errors" 4 5 var ( 6 // ErrExists indicates that the pack repo already exists 7 ErrExists = errors.New("pack repo already exists") 8 // ErrDoesNotExist indicates that the pack repo does not exist 9 ErrDoesNotExist = errors.New("pack repo does not exist") 10 // ErrHomeMissing indicates that the packs dir is missing. 11 ErrHomeMissing = errors.New(`pack repo home "$(draft home)/packs" does not exist`) 12 // ErrMissingSource indicates that information about the source of the pack repo was not found 13 ErrMissingSource = errors.New("cannot get information about pack repo source") 14 // ErrRepoDirty indicates that the pack repo was modified 15 ErrRepoDirty = errors.New("pack repo was modified") 16 //ErrVersionDoesNotExist indicates that the requested pack repo version does not exist 17 ErrVersionDoesNotExist = errors.New("requested version does not exist") 18 )