This is an automated email from the ASF dual-hosted git repository.

placave pushed a commit to branch bump-go-v1-24-9
in repository https://gitbox.apache.org/repos/asf/datasketches-go.git

commit c7d905eac7d1491fad00e2fbe9e3d3ea5ef1b38d
Author: Pierre Lacave <[email protected]>
AuthorDate: Mon Oct 27 23:21:36 2025 +0100

    bump to go 1.24.9
---
 .github/workflows/go.yml |  2 +-
 build/Dockerfile         | 12 +++++++++---
 go.mod                   |  4 +---
 hll/hll_4update.go       |  2 +-
 internal/utils.go        |  3 +--
 5 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 3b5402d..110ffe4 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -15,7 +15,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ '1.23.x' ]
+        go-version: [ '1.24.x' ]
     steps:
     - uses: actions/checkout@v3
 
diff --git a/build/Dockerfile b/build/Dockerfile
index 88365d6..01aece6 100644
--- a/build/Dockerfile
+++ b/build/Dockerfile
@@ -14,16 +14,22 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM golang:alpine
+FROM golang:1.24.9-alpine
 ENV CGO_ENABLED=0
 
 WORKDIR /github.com/apache/datasketches-go/
 COPY go.mod .
 COPY go.sum .
 COPY serialization_test_data ./serialization_test_data
-COPY internal ./internal
-COPY hll ./hll
+COPY common ./common
+COPY count ./count
+COPY cpc ./cpc
+COPY examples ./examples
 COPY frequencies ./frequencies
+COPY hll ./hll
+COPY internal ./internal
+COPY kll ./kll
+COPY theta ./theta
 
 RUN go mod download
 RUN go build -v ./...
diff --git a/go.mod b/go.mod
index b30e4da..89c1346 100644
--- a/go.mod
+++ b/go.mod
@@ -17,9 +17,7 @@
 
 module github.com/apache/datasketches-go
 
-go 1.23.0
-
-toolchain go1.24.2
+go 1.24.9
 
 require (
        github.com/stretchr/testify v1.8.4
diff --git a/hll/hll_4update.go b/hll/hll_4update.go
index 3754b58..2e85b3b 100644
--- a/hll/hll_4update.go
+++ b/hll/hll_4update.go
@@ -187,7 +187,7 @@ func shiftToBiggerCurMin(h *hll4ArrayImpl) error {
                                return fmt.Errorf("newShiftedVal < 0")
                        }
                        if h.getNibble(slotNum) != auxToken {
-                               return fmt.Errorf(fmt.Sprintf("Array slot != 
AUX_TOKEN %d", h.getNibble(slotNum)))
+                               return fmt.Errorf("Array slot != AUX_TOKEN %d", 
h.getNibble(slotNum))
                        }
                        if newShiftedVal < auxToken {
                                if newShiftedVal != 14 {
diff --git a/internal/utils.go b/internal/utils.go
index 12f776b..9b49224 100644
--- a/internal/utils.go
+++ b/internal/utils.go
@@ -22,7 +22,6 @@ import (
        "math"
        "math/bits"
        "reflect"
-       "strconv"
 )
 
 const (
@@ -57,7 +56,7 @@ func PutShortLE(array []byte, offset int, value int) {
 // InvPow2 returns 2^(-e).
 func InvPow2(e int) (float64, error) {
        if (e | 1024 - e - 1) < 0 {
-               return 0, fmt.Errorf("e cannot be negative or greater than 
1023: " + strconv.Itoa(e))
+               return 0, fmt.Errorf("e cannot be negative or greater than 
1023: %d", e)
        }
        return math.Float64frombits((1023 - uint64(e)) << 52), nil
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to