Skip to content

Commit

Permalink
Backport of #87 (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil authored Oct 29, 2021
1 parent 7f0b0fd commit 5b0b669
Show file tree
Hide file tree
Showing 68 changed files with 2,810 additions and 175 deletions.
7 changes: 5 additions & 2 deletions Magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/wavesoftware/go-magetasks/pkg/artifact"
"github.com/wavesoftware/go-magetasks/pkg/artifact/platform"
"github.com/wavesoftware/go-magetasks/pkg/checks"
"github.com/wavesoftware/go-magetasks/pkg/git"
"github.com/wavesoftware/go-magetasks/pkg/knative"
"knative.dev/kn-plugin-event/overrides"
"knative.dev/kn-plugin-event/pkg/metadata"
)
Expand Down Expand Up @@ -45,7 +45,10 @@ func init() { //nolint:gochecknoinits
},
}
magetasks.Configure(config.Config{
Version: &config.Version{Path: metadata.VersionPath(), Resolver: git.Version},
Version: &config.Version{
Path: metadata.VersionPath(),
Resolver: knative.NewVersionResolver(),
},
Artifacts: []config.Artifact{sender, cli},
Checks: []config.Task{checks.GolangCiLint()},
BuildVariables: map[string]config.Resolver{
Expand Down
10 changes: 7 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@ module knative.dev/kn-plugin-event
go 1.16

require (
cloud.google.com/go v0.97.0 // indirect
github.com/cloudevents/sdk-go/v2 v2.4.1
github.com/ghodss/yaml v1.0.0
github.com/google/uuid v1.3.0
github.com/kelseyhightower/envconfig v1.4.0
github.com/magefile/mage v1.11.0
github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2
github.com/prometheus/common v0.31.1 // indirect
github.com/spf13/cobra v1.2.1
github.com/stretchr/testify v1.7.0
github.com/thediveo/enumflag v0.10.0
github.com/wavesoftware/go-ensure v1.0.0
github.com/wavesoftware/go-magetasks v0.5.2
go.uber.org/zap v1.19.0
github.com/wavesoftware/go-magetasks v0.6.0
go.uber.org/zap v1.19.1
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1 // indirect
google.golang.org/api v0.58.0 // indirect
gopkg.in/yaml.v2 v2.4.0
gotest.tools/v3 v3.0.3
k8s.io/api v0.21.4
k8s.io/apimachinery v0.22.2
k8s.io/apimachinery v0.22.3
k8s.io/client-go v0.21.4
knative.dev/client v0.26.0
knative.dev/eventing v0.26.1
Expand Down
71 changes: 45 additions & 26 deletions go.sum

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions third_party/VENDOR-LICENSE/github.com/blang/semver/v4/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License

Copyright (c) 2014 Benedikt Lang <github at benediktlang.de>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

23 changes: 20 additions & 3 deletions vendor/cloud.google.com/go/compute/metadata/metadata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 114 additions & 0 deletions vendor/cloud.google.com/go/compute/metadata/retry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions vendor/cloud.google.com/go/compute/metadata/retry_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 21 additions & 6 deletions vendor/github.com/Microsoft/go-winio/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/github.com/blang/semver/v4/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/blang/semver/v4/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions vendor/github.com/blang/semver/v4/json.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b0b669

Please sign in to comment.