Skip to content

Commit 584f69c

Browse files
committed
Fix some bugs for bundler
1 parent f0618b2 commit 584f69c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cmd/bundle/dropper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func main() {
1414
ctx := context.Background()
1515
1616
bundle := assetslib.TarGZBundler{
17-
Buffer: bytes.NewBuffer(Assets),
17+
Buffer: bytes.NewBuffer(assets), // See assets.gen.go
1818
}
1919
2020
fs, err := bundle.FileSystem()

cmd/bundle/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ func main() {
2121
return err
2222
}
2323

24+
if info.IsDir() {
25+
return nil
26+
}
27+
2428
f, err := os.Open(path)
2529
if err != nil {
2630
return err

0 commit comments

Comments
 (0)