Improve go use case example according to Gerhard's review
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
committed by
Vasek - Tom C
parent
2d3acc61e0
commit
6fe49a0294
@@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user