devenv: use dagger.io/os

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes 2021-05-04 18:12:34 +00:00
parent 052a623294
commit 3b03c96e28
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ package main
import ( import (
"dagger.io/dagger" "dagger.io/dagger"
"dagger.io/io" "dagger.io/os"
"dagger.io/alpine" "dagger.io/alpine"
"dagger.io/docker" "dagger.io/docker"
"dagger.io/go" "dagger.io/go"
@ -16,7 +16,7 @@ source: dagger.#Artifact
test: { test: {
// Go unit tests // Go unit tests
unit: { unit: {
logs: (io.#File & { logs: (os.#File & {
from: build.ctr from: build.ctr
path: "/test.log" path: "/test.log"
read: format: "string" read: format: "string"
@ -47,7 +47,7 @@ build: {
outputDir: "/binaries" outputDir: "/binaries"
} }
logs: (io.#File & { logs: (os.#File & {
from: ctr from: ctr
path: "/build.log" path: "/build.log"
read: format: "string" read: format: "string"

View File

@ -2,20 +2,20 @@ package main
import ( import (
"dagger.io/docker" "dagger.io/docker"
"dagger.io/io" "dagger.io/os"
) )
let ctr = docker.#Container & { let ctr = docker.#Container & {
command: "echo 'hello world!' > /etc/motd" command: "echo 'hello world!' > /etc/motd"
} }
motd: (io.#File & { motd: (os.#File & {
from: ctr from: ctr
path: "/etc/motd" path: "/etc/motd"
read: format: "string" read: format: "string"
}).read.data }).read.data
etc: (io.#Dir & { etc: (os.#Dir & {
from: ctr from: ctr
path: "/etc" path: "/etc"
}).read.tree }).read.tree