19 lines
286 B
CUE
19 lines
286 B
CUE
|
package main
|
||
|
|
||
|
import (
|
||
|
"dagger.io/dagger"
|
||
|
)
|
||
|
|
||
|
dagger.#Plan & {
|
||
|
// Retrieve go source code
|
||
|
client: filesystem: ".": read: {
|
||
|
contents: dagger.#FS
|
||
|
include: ["go.mod", "go.sum", "**/*.go"]
|
||
|
}
|
||
|
|
||
|
actions: {
|
||
|
// Alias to code directory
|
||
|
_code: client.filesystem.".".read.contents
|
||
|
}
|
||
|
}
|