goc/pkg/build/errors.go

25 lines
1.3 KiB
Go
Raw Normal View History

2020-06-16 05:21:28 +00:00
package build
import (
"errors"
)
var (
2020-07-26 09:46:35 +00:00
// ErrShouldNotReached represents the logic should not be reached in normal flow
ErrShouldNotReached = errors.New("should never be reached")
// ErrGocShouldExecInProject represents goc currently not support for the project
ErrGocShouldExecInProject = errors.New("goc not support for such project directory")
// ErrWrongPackageTypeForInstall represents goc install command only support limited arguments
2020-06-16 05:21:28 +00:00
ErrWrongPackageTypeForInstall = errors.New("packages only support \".\" and \"./...\"")
2020-07-26 09:46:35 +00:00
// ErrWrongPackageTypeForBuild represents goc build command only support limited arguments
ErrWrongPackageTypeForBuild = errors.New("packages only support \".\"")
// ErrTooManyArgs represents goc CLI only support limited arguments
ErrTooManyArgs = errors.New("too many args")
// ErrInvalidWorkingDir represents the working directory is invalid
ErrInvalidWorkingDir = errors.New("the working directory is invalid")
// ErrEmptyTempWorkingDir represent the error that temporary working directory is empty
ErrEmptyTempWorkingDir = errors.New("temporary working directory is empty")
// ErrNoPlaceToInstall represents the err that no place to install the generated binary
ErrNoPlaceToInstall = errors.New("don't know where to install")
2020-06-16 05:21:28 +00:00
)