New Upstream Release - golang-github-coreos-semver

Ready changes

Summary

Merged new upstream version: 0.3.1 (was: 0.3.0).

Resulting package

Built on 2023-04-29T18:28 (took 12m5s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases golang-github-coreos-go-semver-devapt install -t fresh-releases golang-go-semver-dev

Lintian Result

Diff

diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
new file mode 100644
index 0000000..c779074
--- /dev/null
+++ b/.github/workflows/go.yml
@@ -0,0 +1,32 @@
+name: Go
+
+on:
+  push:
+    branches: [main]
+  pull_request:
+    branches: [main]
+
+permissions:
+  contents: read
+
+jobs:
+  test-build:
+    name: Test build
+    strategy:
+      matrix:
+        go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x]
+    runs-on: ubuntu-latest
+    steps:
+    - name: Set up Go 1.x
+      uses: actions/setup-go@v3
+      with:
+        go-version: ${{ matrix.go-version }}
+    - name: Check out repository
+      uses: actions/checkout@v3
+    - name: Run tests
+      run: go test ./...
+    - name: Run linter
+      uses: golangci/golangci-lint-action@v3
+      with:
+        version: v1.50.1
+        args: -E=gofmt --timeout=30m0s
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 05f548c..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-language: go
-sudo: false
-go:
-  - 1.4
-  - 1.5
-  - 1.6
-  - tip
-script: cd semver && go test
diff --git a/README.md b/README.md
index 5bc9263..d81ed10 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
 # go-semver - Semantic Versioning Library
 
-[![Build Status](https://travis-ci.org/coreos/go-semver.svg?branch=master)](https://travis-ci.org/coreos/go-semver)
 [![GoDoc](https://godoc.org/github.com/coreos/go-semver/semver?status.svg)](https://godoc.org/github.com/coreos/go-semver/semver)
 
 go-semver is a [semantic versioning][semver] library for Go. It lets you parse
diff --git a/debian/changelog b/debian/changelog
index e5d2f85..b3e0aa5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-github-coreos-semver (0.3.1-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 29 Apr 2023 18:16:44 -0000
+
 golang-github-coreos-semver (0.3.0-1) unstable; urgency=medium
 
   * Team upload.
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..85358f3
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,5 @@
+module github.com/coreos/go-semver
+
+go 1.8
+
+require gopkg.in/yaml.v3 v3.0.1
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..a62c313
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,4 @@
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/semver/semver.go b/semver/semver.go
index 76cf485..eb9fb7f 100644
--- a/semver/semver.go
+++ b/semver/semver.go
@@ -85,7 +85,7 @@ func (v *Version) Set(version string) error {
 		return fmt.Errorf("failed to validate metadata: %v", err)
 	}
 
-	parsed := make([]int64, 3, 3)
+	parsed := make([]int64, 3)
 
 	for i, v := range dotParts[:3] {
 		val, err := strconv.ParseInt(v, 10, 64)
diff --git a/semver/semver_test.go b/semver/semver_test.go
index 3abcab2..b6f9f1c 100644
--- a/semver/semver_test.go
+++ b/semver/semver_test.go
@@ -25,7 +25,7 @@ import (
 	"testing"
 	"time"
 
-	"gopkg.in/yaml.v2"
+	"gopkg.in/yaml.v3"
 )
 
 type fixture struct {
@@ -34,45 +34,45 @@ type fixture struct {
 }
 
 var fixtures = []fixture{
-	fixture{"0.0.0", "0.0.0-foo"},
-	fixture{"0.0.1", "0.0.0"},
-	fixture{"1.0.0", "0.9.9"},
-	fixture{"0.10.0", "0.9.0"},
-	fixture{"0.99.0", "0.10.0"},
-	fixture{"2.0.0", "1.2.3"},
-	fixture{"0.0.0", "0.0.0-foo"},
-	fixture{"0.0.1", "0.0.0"},
-	fixture{"1.0.0", "0.9.9"},
-	fixture{"0.10.0", "0.9.0"},
-	fixture{"0.99.0", "0.10.0"},
-	fixture{"2.0.0", "1.2.3"},
-	fixture{"0.0.0", "0.0.0-foo"},
-	fixture{"0.0.1", "0.0.0"},
-	fixture{"1.0.0", "0.9.9"},
-	fixture{"0.10.0", "0.9.0"},
-	fixture{"0.99.0", "0.10.0"},
-	fixture{"2.0.0", "1.2.3"},
-	fixture{"1.2.3", "1.2.3-asdf"},
-	fixture{"1.2.3", "1.2.3-4"},
-	fixture{"1.2.3", "1.2.3-4-foo"},
-	fixture{"1.2.3-5-foo", "1.2.3-5"},
-	fixture{"1.2.3-5", "1.2.3-4"},
-	fixture{"1.2.3-5-foo", "1.2.3-5-Foo"},
-	fixture{"3.0.0", "2.7.2+asdf"},
-	fixture{"3.0.0+foobar", "2.7.2"},
-	fixture{"1.2.3-a.10", "1.2.3-a.5"},
-	fixture{"1.2.3-a.b", "1.2.3-a.5"},
-	fixture{"1.2.3-a.b", "1.2.3-a"},
-	fixture{"1.2.3-a.b.c.10.d.5", "1.2.3-a.b.c.5.d.100"},
-	fixture{"1.0.0", "1.0.0-rc.1"},
-	fixture{"1.0.0-rc.2", "1.0.0-rc.1"},
-	fixture{"1.0.0-rc.1", "1.0.0-beta.11"},
-	fixture{"1.0.0-beta.11", "1.0.0-beta.2"},
-	fixture{"1.0.0-beta.2", "1.0.0-beta"},
-	fixture{"1.0.0-beta", "1.0.0-alpha.beta"},
-	fixture{"1.0.0-alpha.beta", "1.0.0-alpha.1"},
-	fixture{"1.0.0-alpha.1", "1.0.0-alpha"},
-	fixture{"1.2.3-rc.1-1-1hash", "1.2.3-rc.2"},
+	{"0.0.0", "0.0.0-foo"},
+	{"0.0.1", "0.0.0"},
+	{"1.0.0", "0.9.9"},
+	{"0.10.0", "0.9.0"},
+	{"0.99.0", "0.10.0"},
+	{"2.0.0", "1.2.3"},
+	{"0.0.0", "0.0.0-foo"},
+	{"0.0.1", "0.0.0"},
+	{"1.0.0", "0.9.9"},
+	{"0.10.0", "0.9.0"},
+	{"0.99.0", "0.10.0"},
+	{"2.0.0", "1.2.3"},
+	{"0.0.0", "0.0.0-foo"},
+	{"0.0.1", "0.0.0"},
+	{"1.0.0", "0.9.9"},
+	{"0.10.0", "0.9.0"},
+	{"0.99.0", "0.10.0"},
+	{"2.0.0", "1.2.3"},
+	{"1.2.3", "1.2.3-asdf"},
+	{"1.2.3", "1.2.3-4"},
+	{"1.2.3", "1.2.3-4-foo"},
+	{"1.2.3-5-foo", "1.2.3-5"},
+	{"1.2.3-5", "1.2.3-4"},
+	{"1.2.3-5-foo", "1.2.3-5-Foo"},
+	{"3.0.0", "2.7.2+asdf"},
+	{"3.0.0+foobar", "2.7.2"},
+	{"1.2.3-a.10", "1.2.3-a.5"},
+	{"1.2.3-a.b", "1.2.3-a.5"},
+	{"1.2.3-a.b", "1.2.3-a"},
+	{"1.2.3-a.b.c.10.d.5", "1.2.3-a.b.c.5.d.100"},
+	{"1.0.0", "1.0.0-rc.1"},
+	{"1.0.0-rc.2", "1.0.0-rc.1"},
+	{"1.0.0-rc.1", "1.0.0-beta.11"},
+	{"1.0.0-beta.11", "1.0.0-beta.2"},
+	{"1.0.0-beta.2", "1.0.0-beta"},
+	{"1.0.0-beta", "1.0.0-alpha.beta"},
+	{"1.0.0-alpha.beta", "1.0.0-alpha.1"},
+	{"1.0.0-alpha.1", "1.0.0-alpha"},
+	{"1.2.3-rc.1-1-1hash", "1.2.3-rc.2"},
 }
 
 func TestCompare(t *testing.T) {

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/share/gocode/src/github.com/coreos/go-semver/go.mod
-rw-r--r--  root/root   /usr/share/gocode/src/github.com/coreos/go-semver/go.sum

No differences were encountered between the control files of package golang-github-coreos-go-semver-dev

No differences were encountered between the control files of package golang-go-semver-dev

More details

Full run details