create dagger.mod.cue file automatically
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
This commit is contained in:
parent
6a0b74416a
commit
a3d2f72ea3
@ -51,7 +51,7 @@ func read(f io.Reader) (*file, error) {
|
|||||||
lines := nonEmptyLines(b)
|
lines := nonEmptyLines(b)
|
||||||
|
|
||||||
if len(lines) == 0 {
|
if len(lines) == 0 {
|
||||||
return nil, fmt.Errorf("mod file is empty, missing module name")
|
return nil, fmt.Errorf("cue.mod/dagger.mod.cue file is empty, missing module name")
|
||||||
}
|
}
|
||||||
|
|
||||||
var module string
|
var module string
|
||||||
|
Reference in New Issue
Block a user