From c0732b0996510319ec4d56f346dcc78cda65b75e Mon Sep 17 00:00:00 2001 From: Jens Alfke Date: Tue, 11 Jul 2023 14:18:57 -0700 Subject: [PATCH] v8go package moved from snej to couchbasedeps --- go.mod | 3 +-- go.sum | 6 ++---- js/js_test.go | 2 +- js/v8_runner.go | 2 +- js/v8_template.go | 2 +- js/v8_utils.go | 2 +- js/v8_vm.go | 4 ++-- 7 files changed, 9 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 303d756..b3792d6 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/couchbase/sg-bucket go 1.19 require ( + github.com/couchbasedeps/v8go v1.7.5-0.20230711211145-c847898e2ac7 github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f - github.com/snej/v8go v1.7.3 github.com/stretchr/testify v1.7.1 golang.org/x/text v0.3.7 gopkg.in/couchbase/gocb.v1 v1.6.7 @@ -25,5 +25,4 @@ require ( gopkg.in/couchbaselabs/jsonx.v1 v1.0.1 // indirect gopkg.in/sourcemap.v1 v1.0.5 // indirect gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect - rogchap.com/v8go v0.8.0 // indirect ) diff --git a/go.sum b/go.sum index 89d6e35..58c9665 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/couchbasedeps/v8go v1.7.5-0.20230711211145-c847898e2ac7 h1:n1TK4ZD3witbgEefHtSN5+0C214BlFfPZ9C+Tyaig+4= +github.com/couchbasedeps/v8go v1.7.5-0.20230711211145-c847898e2ac7/go.mod h1:idYCHzuZs5u+Yv9mYwhOBheFP82+7arI2Y8xVeU2Ttk= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= @@ -14,8 +16,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f h1:a7clxaGmmqtdNTXyvrp/lVO/Gnkzlhc/+dLs5v965GM= github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f/go.mod h1:/mK7FZ3mFYEn9zvNPhpngTyatyehSwte5bJZ4ehL5Xw= -github.com/snej/v8go v1.7.3 h1:skliM+LRvRdLKwqJK4I+1BCQy4jTZs0u37R6b7aEUaU= -github.com/snej/v8go v1.7.3/go.mod h1:s7IVrqyNoVfwYhndECq3XJ+/y0uq/JUH0/ECsC3k/UQ= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= @@ -44,5 +44,3 @@ gopkg.in/sourcemap.v1 v1.0.5 h1:inv58fC9f9J3TK2Y2R1NPntXEn3/wjWHkonhIUODNTI= gopkg.in/sourcemap.v1 v1.0.5/go.mod h1:2RlvNNSMglmRrcvhfuzp4hQHwOtjxlbjX7UPY/GXb78= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -rogchap.com/v8go v0.8.0 h1:/crDEiga68kOtbIqw3K9Rt9OztYz0LhAPHm2e3wK7Q4= -rogchap.com/v8go v0.8.0/go.mod h1:MxgP3pL2MW4dpme/72QRs8sgNMmM0pRc8DPhcuLWPAs= diff --git a/js/js_test.go b/js/js_test.go index b73da0f..d5d458d 100644 --- a/js/js_test.go +++ b/js/js_test.go @@ -21,7 +21,7 @@ import ( "testing" "time" - "github.com/snej/v8go" + "github.com/couchbasedeps/v8go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/js/v8_runner.go b/js/v8_runner.go index 4e42027..33860a7 100644 --- a/js/v8_runner.go +++ b/js/v8_runner.go @@ -20,7 +20,7 @@ import ( "strings" "time" - v8 "github.com/snej/v8go" // Docs: https://pkg.go.dev/github.com/snej/v8go + v8 "github.com/couchbasedeps/v8go" // Docs: https://pkg.go.dev/github.com/couchbasedeps/v8go ) type V8Runner struct { diff --git a/js/v8_template.go b/js/v8_template.go index e8ed068..37069dc 100644 --- a/js/v8_template.go +++ b/js/v8_template.go @@ -15,7 +15,7 @@ package js import ( "fmt" - v8 "github.com/snej/v8go" + v8 "github.com/couchbasedeps/v8go" ) // A V8Template manages a Service's initial JS runtime environment -- its script code, main function diff --git a/js/v8_utils.go b/js/v8_utils.go index e30139a..eefe6ea 100644 --- a/js/v8_utils.go +++ b/js/v8_utils.go @@ -18,7 +18,7 @@ import ( "fmt" "math" - v8 "github.com/snej/v8go" + v8 "github.com/couchbasedeps/v8go" ) // CONVERTING V8 VALUES BACK TO GO: diff --git a/js/v8_vm.go b/js/v8_vm.go index 24c21d3..4306bf8 100644 --- a/js/v8_vm.go +++ b/js/v8_vm.go @@ -19,10 +19,10 @@ import ( "sync" "time" - v8 "github.com/snej/v8go" + v8 "github.com/couchbasedeps/v8go" ) -// v8go docs: https://pkg.go.dev/github.com/snej/v8go +// v8go docs: https://pkg.go.dev/github.com/couchbasedeps/v8go // General V8 API docs: https://v8.dev/docs/embed type v8VM struct {