mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-19 12:23:25 +08:00
Fix CI build by embedding workspace templates from repo root
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
|
|
||||||
"clawgo/pkg/nodes"
|
"clawgo/pkg/nodes"
|
||||||
"clawgo/pkg/providers"
|
"clawgo/pkg/providers"
|
||||||
|
|||||||
@@ -7,17 +7,16 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"embed"
|
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"clawgo"
|
||||||
"clawgo/pkg/config"
|
"clawgo/pkg/config"
|
||||||
"clawgo/pkg/logger"
|
"clawgo/pkg/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed workspace
|
var embeddedFiles = clawgo.EmbeddedWorkspace
|
||||||
var embeddedFiles embed.FS
|
|
||||||
|
|
||||||
var version = "0.1.0"
|
var version = "0.1.0"
|
||||||
var buildTime = "unknown"
|
var buildTime = "unknown"
|
||||||
|
|||||||
8
workspace_embed.go
Normal file
8
workspace_embed.go
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package clawgo
|
||||||
|
|
||||||
|
import "embed"
|
||||||
|
|
||||||
|
// EmbeddedWorkspace bundles onboarding workspace templates into the binary.
|
||||||
|
//go:embed all:workspace
|
||||||
|
var EmbeddedWorkspace embed.FS
|
||||||
|
|
||||||
Reference in New Issue
Block a user