lang: Add an embedded package for embedded imports

This adds a new "embedded" package which can be used to import
system-like packages that are embedded into the binary.
This commit is contained in:
James Shubin
2024-02-22 19:02:33 -05:00
parent 9d8beb85d7
commit 70b5ed7067
7 changed files with 175 additions and 0 deletions

View File

@@ -419,6 +419,14 @@ func (obj *GAPI) Cli(cliInfo *gapi.CliInfo) (*gapi.Deploy, error) {
util.PathSlice(files).Sort() // sort it
for _, src := range files { // absolute paths
// rebase path src to root file system of "/" for etcdfs...
// everywhere we expect absolute, but we should use relative :/
//tree, err := util.FsTree(fs, "/")
//if err != nil {
// return nil, err
//}
//logf("tree:\n%s", tree)
dst, err := util.Rebase(src, output.Base, "/")
if err != nil {
// possible programming error