From 29c097763978ba8d66fa2f6141b004777ad58277 Mon Sep 17 00:00:00 2001 From: Isaac Halvorson Date: Tue, 5 Jul 2022 12:46:39 -0500 Subject: [PATCH] Convert to Go modules (#83) * Update to go modules * Remove references to gows * Remove update-this-step workflow * Ignore .idea dir --- .gitignore | 2 +- Gopkg.lock | 26 -------------------------- Gopkg.toml | 11 ----------- bitrise.yml | 17 ----------------- go.mod | 13 +++++++++++++ go.sum | 20 ++++++++++++++++++++ gows.yml | 1 - vendor/modules.txt | 13 +++++++++++++ 8 files changed, 47 insertions(+), 56 deletions(-) delete mode 100644 Gopkg.lock delete mode 100644 Gopkg.toml create mode 100644 go.mod create mode 100644 go.sum delete mode 100644 gows.yml create mode 100644 vendor/modules.txt diff --git a/.gitignore b/.gitignore index a19bdb3..a74286d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .bitrise* -.gows.user.yml +.idea/ diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index 4af39fc..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,26 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - branch = "master" - name = "github.com/bitrise-io/go-utils" - packages = [ - "colorstring", - "log", - "parseutil", - "pointers" - ] - revision = "b33f6bcef9b50045d7e62364b354584afc3ee329" - -[[projects]] - branch = "master" - name = "github.com/bitrise-tools/go-steputils" - packages = ["stepconf"] - revision = "b0e1079aa921440413a5c56f301246fe8367c072" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "dee1f6b2f01e3a4378a7501e8cfdba0c22e070eade25621d24f72bb00f3df4e9" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index 872ce11..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,11 +0,0 @@ -[[constraint]] - name = "github.com/bitrise-io/go-utils" - branch = "master" - -[[constraint]] - name = "github.com/bitrise-tools/go-steputils" - branch = "master" - -[prune] - go-tests = true - unused-packages = true diff --git a/bitrise.yml b/bitrise.yml index 1f93118..a5125e6 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -111,23 +111,6 @@ workflows: - path::./: is_skippable: false - # ---------------------------------------------------------------- - # --- Utility workflows - dep-update: - title: Dep update - description: | - Used for updating bitrise dependencies with dep - steps: - - script: - title: Dependency update - inputs: - - content: |- - #!/bin/bash - set -ex - go get -u -v github.com/golang/dep/cmd/dep - dep ensure -v - dep ensure -v -update - # ---------------------------------------------------------------- # --- workflows to Share this step into a Step Library audit-this-step: diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..f7560a3 --- /dev/null +++ b/go.mod @@ -0,0 +1,13 @@ +module github.com/bitrise-steplib/steps-slack-message + +go 1.17 + +require ( + github.com/bitrise-io/go-utils v0.0.0-20171214135957-b33f6bcef9b5 + github.com/bitrise-tools/go-steputils v0.0.0-20180209154519-b0e1079aa921 +) + +require ( + github.com/stretchr/testify v1.8.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..442e401 --- /dev/null +++ b/go.sum @@ -0,0 +1,20 @@ +github.com/bitrise-io/go-utils v0.0.0-20171214135957-b33f6bcef9b5 h1:kQ5jR1WQy1I8caVbnRZshej4H03crTuqHCPsaYdNRlI= +github.com/bitrise-io/go-utils v0.0.0-20171214135957-b33f6bcef9b5/go.mod h1:Pp48eQd8BSNEzWWTBxdFUd/ufS5b5Bgkmt9D5NedjWg= +github.com/bitrise-tools/go-steputils v0.0.0-20180209154519-b0e1079aa921 h1:vBwboEybHM/I+BNN+TM9z5oQRZOwzeIPqCt1xM2/+LI= +github.com/bitrise-tools/go-steputils v0.0.0-20180209154519-b0e1079aa921/go.mod h1:4eEx1Bd2AAVAN/YGK4V066jO7ekrsLymkyQZzx2UEwQ= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +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/gows.yml b/gows.yml deleted file mode 100644 index faf2605..0000000 --- a/gows.yml +++ /dev/null @@ -1 +0,0 @@ -package_name: github.com/bitrise-io/steps-slack-message diff --git a/vendor/modules.txt b/vendor/modules.txt new file mode 100644 index 0000000..846c611 --- /dev/null +++ b/vendor/modules.txt @@ -0,0 +1,13 @@ +# github.com/bitrise-io/go-utils v0.0.0-20171214135957-b33f6bcef9b5 +## explicit +github.com/bitrise-io/go-utils/colorstring +github.com/bitrise-io/go-utils/log +github.com/bitrise-io/go-utils/parseutil +github.com/bitrise-io/go-utils/pointers +# github.com/bitrise-tools/go-steputils v0.0.0-20180209154519-b0e1079aa921 +## explicit +github.com/bitrise-tools/go-steputils/stepconf +# github.com/stretchr/testify v1.8.0 +## explicit; go 1.13 +# gopkg.in/yaml.v2 v2.4.0 +## explicit; go 1.15