Skip to content

Commit

Permalink
fix: lock dep version, close #47
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Jun 28, 2022
1 parent cf86be5 commit 85a4f50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/koi/cli/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ func createInstanceAction(c *cli.Context) error {
if err != nil {
l.Fatal("Failed to read package.json. Invalid Koishi project?")
}
// Lock dep version
pkgjson = []byte(strings.ReplaceAll(string(pkgjson), "^", ""))
var pkgObj json.OrderedObject
err = json.Unmarshal(pkgjson, &pkgObj)
if err != nil {
Expand Down

0 comments on commit 85a4f50

Please sign in to comment.