Skip to content

Commit 257c970

Browse files
committed
fix: package release bugs
1 parent ec283cb commit 257c970

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ builds:
1212
- CGO_ENABLED=0
1313
binary: apic
1414
dir: ./cmd/cli
15-
ldflags: b-X main.version={{.Version}}
15+
ldflags: -X main.version={{.Version}}
1616
goos:
1717
- linux
1818
- windows

internal/cli/pluginmanager/plugin_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (p *PluginManager) LoadBuiltinPlugin() error {
6969
path = filepath.Clean(filepath.Join(cwd, fmt.Sprintf("./plugins/builtin/%s", p.ApiType)))
7070
} else {
7171
homeDir, _ := os.UserHomeDir()
72-
path = filepath.Clean(filepath.Join(homeDir, fmt.Sprintf(".apic/plugins/builtin/%s", p.ApiType)))
72+
path = filepath.Clean(filepath.Join(homeDir, fmt.Sprintf(".apic/builtin/%s", p.ApiType)))
7373
}
7474

7575
builtInPlugin, err := os.ReadDir(path)

0 commit comments

Comments
 (0)