Skip to content

Commit

Permalink
cue fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Longtine <joel@dagger.io>
  • Loading branch information
jlongtine committed Jan 28, 2022
1 parent 6db4216 commit 0de625e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pkg/universe.dagger.io/docker/run.cue
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,17 @@ import (
let k = split[0]
let v = split[1]
if env[k] == _|_ {
"env": "\(k)": v
env: "\(k)": v
}
}
}
"workdir": workdir
if workdir == _|_ && _image.config.WorkingDir != _|_ {
"workdir": _image.config.WorkingDir
workdir: _image.config.WorkingDir
}
"user": user
if user == _|_ && _image.config.User != _|_ {
"user": _image.config.User
user: _image.config.User
}
}
}
4 changes: 1 addition & 3 deletions pkg/universe.dagger.io/docker/test/image-config-test.cue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ dagger.#Plan & {
}
run: docker.#Run & {
image: myimage
cmd: {
name: "ls"
}
cmd: name: "ls"
export: files: {
"/dagger.txt": _ & {
contents: "not hello from dagger"
Expand Down

0 comments on commit 0de625e

Please sign in to comment.