Skip to content

Commit 4672560

Browse files
committed
Support nested lib/ directories
1 parent f8818b9 commit 4672560

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
ros "github.com/risor-io/risor/os"
1717
)
1818

19-
//go:embed lib/*.risor
19+
//go:embed lib/*
2020
var _rsrLib embed.FS
2121

2222
//go:embed lib/rsx.risor

main.risor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ func copy_libs(dir) {
8888
filepath.walk_dir("lib", func(path, dir_entry, err) {
8989
if dir_entry.type == "regular" {
9090
dest := filepath.join(dir, path)
91+
d := filepath.dir(dest)
92+
os.mkdir_all(d)
9193
rsx.debug('Copying file {path} to {dest}')
9294
cp(path, dest)
9395
}

0 commit comments

Comments
 (0)