Merge pull request #133 from dagger/go-no-copy

stdlib: go: mount source rather than copying
This commit is contained in:
Andrea Luzzardi 2021-02-19 14:45:11 -08:00 committed by GitHub
commit 5e6d850172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,12 +21,7 @@ import (
dagger.#FetchContainer & {
ref: "docker.io/golang:\(version)-alpine"
},
dagger.#Copy & {
from: source
dest: "/src"
},
dagger.#Exec & {
dir: "/src"
"args": ["go"] + args
env: env
@ -38,6 +33,9 @@ import (
GOPATH: "/go"
}
dir: "/src"
mount: "/src": from: source
mount: "/root/.cache": "cache"
},
]