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

unable to reuse mount within fs block #71

Closed
coryb opened this issue Apr 9, 2020 · 0 comments · Fixed by #72
Closed

unable to reuse mount within fs block #71

coryb opened this issue Apr 9, 2020 · 0 comments · Fixed by #72
Labels
bug Something isn't working needs test

Comments

@coryb
Copy link
Contributor

coryb commented Apr 9, 2020

Input:

fs default() {
	image "busybox"
	run "touch foo" with option {
		dir "/foo"
		mount fs { scratch; } "/foo" as fooMount
	}
	run "ls -l" with option {
		dir "/foo"
		mount fooMount "/foo"
	}
}

Output:

$ hlb run ./bugs.hlb
#1 compiling [default]
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitFuncDecl
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/decl.go:19
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitAliasDecl
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/decl.go:81
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitFilesystemAliasDecl
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/decl.go:96
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitFilesystemExpr
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/expr.go:110
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitExecOptions
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/codegen.go:1357
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitOptions
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/codegen.go:866
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitWithOption
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/codegen.go:322
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitFilesystemChainStmt
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/codegen.go:330
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitChainStmt
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/codegen.go:185
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitBlock
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/codegen.go:157
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitFilesystemBlock
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/codegen.go:272
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitFuncDecl
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/decl.go:45
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).EmitFilesystemFuncDecl
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/decl.go:56
#1 0.000 github.com/openllb/hlb/codegen.(*CodeGen).Generate
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/codegen/codegen.go:95
#1 0.000 github.com/openllb/hlb.Compile.func1
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/hlb.go:146
#1 0.000 github.com/openllb/hlb/solver.(*progressUI).Write.func2.1
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/solver/progress.go:172
#1 0.000 github.com/openllb/hlb/solver.write
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/solver/progress.go:196
#1 0.000 github.com/openllb/hlb/solver.(*progressUI).Write.func2
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/github.com/openllb/hlb/solver/progress.go:171
#1 0.000 golang.org/x/sync/errgroup.(*Group).Go.func1
#1 0.000 	/go/src/stash.corp.netflix.com/engtools/newt/vendor/golang.org/x/sync/errgroup/errgroup.go:57
#1 0.000 runtime.goexit
#1 0.000 	/go-version/1.14.1/src/runtime/asm_amd64.s:1373
#1 0.000 Caused by: default expected args [], found [fooMount "/foo"]
#1 ERROR: default expected args [], found [fooMount "/foo"]
------
 > compiling [default]:
#1 0.000 Caused by: default expected args [], found [fooMount "/foo"]
------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs test
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants