c923e5042b
- Solver: Encapsulates all access to Buildkit. Can solve plain LLB, invoke external frontends (for DockerBuild) and export (for ContainerPush) - FS (now BuildkitFS) implements the standard Go 1.16 io/fs.FS interface and provides a read-only filesystem on top of a buildkit result. It can be used with built-ins such as fs.WalkDir (no need to have our own Walk functions anymore) - Moved CueBuild into compiler.Build since it no longer depends on Buildkit. Instead it relies on the io/fs.FS interface, which is used both for the base config and the stdlib (go:embed also uses io/fs.FS). Overlaying base and the stdlib is now done by the same code. Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
16 lines
228 B
Go
16 lines
228 B
Go
package stdlib
|
|
|
|
import (
|
|
"embed"
|
|
"path"
|
|
)
|
|
|
|
var (
|
|
// FS contains the filesystem of the stdlib.
|
|
//go:embed **/*.cue **/*/*.cue
|
|
FS embed.FS
|
|
|
|
PackageName = "dagger.io"
|
|
Path = path.Join("cue.mod", "pkg", PackageName)
|
|
)
|