Remove state (State + Project)

Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine
2022-02-18 16:15:29 -07:00
parent 034cd74ed0
commit 4e1b6173be
10 changed files with 9 additions and 996 deletions

View File

@@ -59,7 +59,7 @@ func Vendor(ctx context.Context, p string) error {
}()
// ensure cue module is initialized
if err := cueModInit(ctx, p); err != nil {
if err := CueModInit(ctx, p); err != nil {
return err
}
@@ -167,7 +167,7 @@ func GetCueModParent() string {
return parentDir
}
func cueModInit(ctx context.Context, parentDir string) error {
func CueModInit(ctx context.Context, parentDir string) error {
lg := log.Ctx(ctx)
modDir := path.Join(parentDir, "cue.mod")