Merge pull request #1526 from TomChv/fix/embed-sh-script
Embed shell script into universe
This commit is contained in:
@@ -338,7 +338,9 @@ func walkStdlib(ctx context.Context, output, format string) {
|
||||
return err
|
||||
}
|
||||
|
||||
if p == "." || d.Name() == pkg.AlphaModule || !d.IsDir() || d.Name() == "cue.mod" {
|
||||
// Ignore useless embedded files
|
||||
if p == "." || d.Name() == pkg.AlphaModule || !d.IsDir() || d.Name() == "cue.mod" ||
|
||||
strings.Contains(p, "cue.mod") || strings.Contains(p, "tests") {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -357,6 +359,10 @@ func walkStdlib(ctx context.Context, output, format string) {
|
||||
lg.Warn().Str("package", p).Err(err).Msg("ignoring")
|
||||
return nil
|
||||
}
|
||||
if strings.Contains(err.Error(), "cannot find package") {
|
||||
lg.Warn().Str("package", p).Err(err).Msg("ignoring")
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user