Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch-container does not seem to do anything #14

Closed
dubo-dubon-duponey opened this issue Jan 12, 2021 · 6 comments
Closed

fetch-container does not seem to do anything #14

dubo-dubon-duponey opened this issue Jan 12, 2021 · 6 comments

Comments

@dubo-dubon-duponey
Copy link
Contributor

www: {

	source: {
		#dagger: compute: [
			{
				do: "fetch-container"
				ref: "lalalalala",
			},
		]
	}
}

I would expect an error on this ^ (of course there is no such image as "lalalala").
Not sure if I'm doing something wrong...

@shykes
Copy link
Contributor

shykes commented Jan 12, 2021

Can you paste the output of dagger compute?

@aluzzardi
Copy link
Member

aluzzardi commented Jan 12, 2021

Looks like fetch-container does not trigger a solve unless followed by exec/export or something else

@dubo-dubon-duponey
Copy link
Contributor Author

@aluzzardi it does not seem to do anything when followed by an exec either.

@shykes
Copy link
Contributor

shykes commented Jan 12, 2021

Correct, there is an issue of solve calls being too lazy, I am working on it now.

@dubo-dubon-duponey
Copy link
Contributor Author

@shykes

dmp@macArena:~/Projects/Go/src/github.com/blocklayerhq/dagger$ make dagger;  DEBUG=1 DOCKER_OUTPUT=1 ./cmd/dagger/dagger compute examples/simple/
go build -o ./cmd/dagger/ ./cmd/dagger/
[info] Running
client: assembled boot script: [{
	do:  "local"
	dir: "examples/simple/"
	include: ["*.cue", "cue.mod"]
}]
Walk close({
	#FetchContainer | #FetchGit | #Export | #Exec | #Local | #Copy | #Load
	do:  "local"
	dir: bootdir
	include: ["*.cue", "cue.mod"]
})
NewEnv(boot="[{\n\tdo:  \"local\"\n\tdir: \"examples/simple/\"\n\tinclude: [\"*.cue\", \"cue.mod\"]\n}]" input="{}")
#Op: OP MATCH: #Local
building cue configuration from boot state
Compiler.Build
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:0 statuses:1 logs:0
status event: vertexes:0 statuses:1 logs:0
status event: vertexes:0 statuses:1 logs:0
status event: vertexes:1 statuses:0 logs:0
  Compiler.Build: processing "/cue.mod"
  Compiler.Build: processing "/cue.mod/module.cue"
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:1 statuses:0 logs:0
  Compiler.Build: processing "/cue.mod/pkg"
  Compiler.Build: processing "/cue.mod/pkg/dagger.cloud"
  Compiler.Build: processing "/cue.mod/pkg/dagger.cloud/alpine"
  Compiler.Build: processing "/cue.mod/pkg/dagger.cloud/alpine/alpine.cue"
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:1 statuses:0 logs:0
#1 local://examples/simple/
#1 sha256:9eb7d32913c97b3f41f00ad0c48ed76467bf4571e548e1f7895b0fc5a85bc08c
#1 transferring examples/simple/: 426B done
#1 DONE 0.0s

#2 local://examples/simple/
#2 sha256:710ef0054f7ee3bfb14ade58e1948d25b8f103d48b00a6c7699b282e149e97cb
#2 DONE 0.0s
  Compiler.Build: processing "/cue.mod/pkg/dagger.cloud/dagger"
  Compiler.Build: processing "/cue.mod/pkg/dagger.cloud/dagger/dagger.cue"
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:1 statuses:0 logs:0
  Compiler.Build: processing "/simple.cue"
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:1 statuses:0 logs:0
  Compiler.Build: processing "/values.cue"
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:1 statuses:0 logs:0
COMPLETE: Compiler.Build
Loading input overlay
ENV: base="{\"www\":{\"host\":\"acme.infralabs.io\",\"source\":{}}}" input="{}"
computing env
Computing environment
Env.Walk
walking:
----
{"www":{"host":"acme.infralabs.io","source":{}}}
----
Env.Walk: processing
Env.Walk: processing www
Env.Walk: processing www.source
Env.Walk: processing www.host
Env.Walk: processing www.url
compute step
  [Env.Compute] processing www.url
  [Env.Compute] processing www.source
compute step
cueflow task "www.url": Terminated
cueflow task "www.url": filling result
#Op: OP MATCH: #FetchContainer
#Op: OP MATCH: #Exec
compute step
cueflow task "www.source": Terminated
cueflow task "www.source": filling result
COMPLETE: Env.Walk
exporting env

#3 local://examples/simple/
#3 sha256:0b4b953387b86cd1a615346343f7d4dd9311cf8f89b9b6592fe2203cb3c0ba99
#3 DONE 0.0s

#4 local://examples/simple/
#4 sha256:5e78510151650b54b885283fb2d34eea10b83fd9716777bf18cc76d753bba136
status event: vertexes:3 statuses:0 logs:0
#4 DONE 0.0s

#5 local://examples/simple/
#5 sha256:d599bf9dd0395c698c324156bba9becb653dc83307cc2bf07fe3f05540e7f685
#5 DONE 0.0s

#6 local://examples/simple/
#6 sha256:7fcdec0181c1c95c26949e783f111e56bf53e76567dd4cbdecb7a28e523e9b4b
#6 DONE 0.0s
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:2 statuses:0 logs:0
status event: vertexes:1 statuses:0 logs:0
status event: vertexes:0 statuses:1 logs:0
outputfn: compiling & merging "base.cue"
outputfn: DONE: compiling & merging "base.cue"
outputfn: compiling & merging "input.cue"
outputfn: DONE: compiling & merging "input.cue"
outputfn: compiling & merging "output.cue"
outputfn: DONE: compiling & merging "output.cue"
outputfn complete
status event: vertexes:0 statuses:1 logs:0
status event: vertexes:1 statuses:0 logs:0
printfn complete

#7 mkfile /base.cue
#7 sha256:d06d1c9da5199057cc14aa3d1c307dd39aeaec9143191c1abbaa8520c76b7406
#7 DONE 0.0s

#8 mkfile /input.cue
#8 sha256:22c4f45773082c56a3998693382991660bca0374e919a03f0fe14ffc92170890
#8 CACHED

#9 mkfile /output.cue
#9 sha256:2ee6dcfb489e06790a658da8f6032c5fab59e48432a54ab02f837383b4995175
#9 CACHED

#10 exporting to client
#10 sha256:b60a1292d407630dbb741f28ab6ea4ce3cca872ac28eeee56f4e66a182eca4bc
#10 sending tarball done
#10 DONE 0.0s
dockerprintfn complete
[info] Processing output
{"www":{"host":"acme.infralabs.io","source":{}}}

@shykes
Copy link
Contributor

shykes commented Jan 12, 2021

Confirming that was the issue. I have a fix, will push shortly.

@shykes shykes closed this as completed in 8b10500 Jan 12, 2021
aluzzardi added a commit that referenced this issue Jan 15, 2021
This forces Solve() to be synchronous and ensures operations don't get
discarded because of optimizations.

Improves fix for #14

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
aluzzardi added a commit that referenced this issue Jan 15, 2021
This forces Solve() to be synchronous and ensures operations don't get
discarded because of optimizations.

Improves fix for #14

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
aluzzardi added a commit that referenced this issue Jan 15, 2021
This forces Solve() to be synchronous and ensures operations don't get
discarded because of optimizations.

Improves fix for #14

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
aluzzardi pushed a commit that referenced this issue Sep 16, 2022
removed a link mention and changed discord mention
vikram-dagger pushed a commit to vikram-dagger/dagger that referenced this issue Aug 24, 2023
…js/react-build/json5-1.0.2

Bump json5 from 1.0.1 to 1.0.2 in /nodejs/react-build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants