Skip to content

Commit

Permalink
fix(stencil): upgrade modules (2023-08-07) (#142)
Browse files Browse the repository at this point in the history
* fix(stencil): upgrade modules (2023-08-07)

* handle deprecation

---------

Co-authored-by: getoutreach-ci-1[bot] <95656460+getoutreach-ci-1[bot]@users.noreply.github.com>
Co-authored-by: Jared Allard <[email protected]>
  • Loading branch information
getoutreach-ci-1[bot] and jaredallard authored Aug 7, 2023
1 parent 657b545 commit 696599a
Show file tree
Hide file tree
Showing 18 changed files with 1,791 additions and 1,888 deletions.
15 changes: 10 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# syntax, such as anchors, will be fixed automatically.
version: 2.1
orbs:
shared: getoutreach/[email protected]
shared: getoutreach/[email protected]
queue: eddiewebb/[email protected]

parameters:
rebuild_cache:
Expand All @@ -16,7 +17,6 @@ contexts: &contexts
- docker-registry
- npm-credentials
- prismacloud-credentials
- opslevel-credentials
- vault-dev
- confluence
- circleci-credentials
Expand Down Expand Up @@ -105,14 +105,19 @@ workflows:
filters:
branches:
ignore: *release_branches
- shared/test: *test
- shared/test:
<<: *test
## <<Stencil::Block(circleSharedTestExtra)>>

## <</Stencil::Block>>
- shared/publish_docs:
context: *contexts
filters:
branches:
ignore: /.*/
only:
- main
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
only: /v\d+(\.\d+)*(-.*)*/
- shared/e2e:
context: *contexts
## <<Stencil::Block(circleE2EExtra)>>
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ updates:
ignore:
- dependency-name: github.com/getoutreach/gobox
- dependency-name: github.com/urfave/cli/v2
- dependency-name: github.com/getoutreach/mint
- dependency-name: github.com/getoutreach/httpx
- dependency-name: github.com/getoutreach/services
- dependency-name: github.com/getoutreach/datastores/v2
- dependency-name: github.com/getoutreach/mint
- dependency-name: github.com/getoutreach/httpx

# Ignore semantic-release, this code is only executed in CI.
- package-ecosystem: "npm"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Pulumi.*.yaml
# Documentation output
/apidocs

### Start ignores inserted by other modules
### End ignores inserted by other modules

## <<Stencil::Block(extras)>>

## <</Stencil::Block>>
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Documentation for this file: http://goreleaser.com
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
before:
hooks:
- make dep
Expand All @@ -18,6 +18,7 @@ builds:
- '-X "main.TeleforkAPIKey={{ .Env.TELEFORK_APIKEY }}"'
env:
- CGO_ENABLED=0

archives: []
checksum:
name_template: "checksums.txt"
Expand Down
7 changes: 3 additions & 4 deletions .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
# you are reducing compatibility guarantees.
## <<Stencil::Block(toolverOverride)>>
## <</Stencil::Block>>
golang 1.19.2
nodejs 16.13.0
terraform 0.14.11
ruby 2.7.5
golang 1.19.11
terraform 1.4.4
protoc 21.5
nodejs 18.14.1
# Note: Versions in this block do not override the default versions above
# but sometimes you have to declare additional versions of the same tool
# while leaving the 'default' version intact for the infra.
Expand Down
27 changes: 24 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,41 @@
"host": "127.0.0.1",
"port": 42097,
// <</Stencil::Block>>
// Paths to replace when running the debugger. "from" is the host
// path and "to" is the path in the devspace.
"substitutePath": [
{
// Maps the workspace root (the repository directory) to the path that
// is compiled into the built binary. Note: This is not impacted by trimpath
// because devbase currently uses dlv to compile the source code.
// See: https://github.com/getoutreach/devbase/blob/main/shell/debug.sh#L72
"from": "${workspaceRoot}",
"to": "/home/dev/app"
},
// Maps the go module cache on the host to the persistent volume used by devspaces.
// See the value of `go env GOMODCACHE` on the host and devspace.
{
"from": "${env:HOME}/.asdf/installs/golang/1.19.2/packages/pkg/mod",
"from": "${env:HOME}/.asdf/installs/golang/1.19.11/packages/pkg/mod",
"to": "/tmp/cache/go/mod/"
},
{
"from": "${env:HOME}/.asdf/installs/golang/1.19.2/go/src",
"to": "/home/dev/.asdf/installs/golang/1.19.2/go/src"
// Maps the standard library location on the host to the location in the devspace.
// This enables debugging standard library code.
"from": "${env:HOME}/.asdf/installs/golang/1.19.11/go/src",
"to": "/home/dev/.asdf/installs/golang/1.19.11/go/src"
}
]
},
{
"name": "Attach to dev container (in binary mode)",
"type": "go",
"debugAdapter": "dlv-dap",
"request": "attach",
"mode": "remote",
// <<Stencil::Block(vscodeRemoteDebugDevspaceBinary)>>
"host": "127.0.0.1",
"port": 42097
// <</Stencil::Block>>
}
// <<Stencil::Block(vscodeLaunchConfigs)>>

Expand Down
2 changes: 0 additions & 2 deletions .vscode/private.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
MY_NAMESPACE="gobin--bento1a"
OUTREACH_ACCOUNTS_BASE_URL="https://accounts.outreach-dev.com"
OUTREACH_DOMAIN="outreach-dev.com"
// <<Stencil::Block(vscodeEnvVars)>>

// <</Stencil::Block>>
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

## Building and Testing

This project uses devbase, which exposes the following build tooling: [devbase/docs/makefile.md](https://github.com/getoutreach/devbase/blob/main/docs/makefile.md)

<!-- <<Stencil::Block(customBuildingAndTesting)>> -->

<!-- <</Stencil::Block>> -->
Expand Down
12 changes: 11 additions & 1 deletion cmd/gobin/gobin.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"context"

oapp "github.com/getoutreach/gobox/pkg/app"
"github.com/getoutreach/gobox/pkg/cfg"
gcli "github.com/getoutreach/gobox/pkg/cli"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
Expand Down Expand Up @@ -39,6 +40,7 @@ const HoneycombDataset = ""

// <</Stencil::Block>>

// main is the entrypoint for the gobin CLI.
func main() {
ctx, cancel := context.WithCancel(context.Background())
log := logrus.New()
Expand Down Expand Up @@ -83,5 +85,13 @@ func main() {
// <</Stencil::Block>>

// Insert global flags, tracing, updating and start the application.
gcli.HookInUrfaveCLI(ctx, cancel, &app, log, HoneycombTracingKey, HoneycombDataset, TeleforkAPIKey)
gcli.Run(ctx, cancel, &app, &gcli.Config{
Logger: log,
Telemetry: gcli.TelemetryConfig{
Otel: gcli.TelemetryOtelConfig{
Dataset: HoneycombDataset,
HoneycombAPIKey: cfg.SecretData(HoneycombTracingKey),
},
},
})
}
77 changes: 43 additions & 34 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
module github.com/getoutreach/gobin

go 1.17
go 1.19

require (
github.com/getoutreach/gobox v1.54.0
github.com/getoutreach/gobox v1.71.0
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.8.1
github.com/sirupsen/logrus v1.9.0
github.com/urfave/cli/v2 v2.16.3
golang.org/x/tools/go/vcs v0.1.0-deprecated
)

require (
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/aymanbagabas/go-osc52 v1.0.3 // indirect
github.com/creack/pty v1.1.17 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
)

require (
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20220407094043-a94812496cf5 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/briandowns/spinner v1.18.1 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/charmbracelet/glamour v0.5.0 // indirect
github.com/briandowns/spinner v1.23.0 // indirect
github.com/cenkalti/backoff/v4 v4.2.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/charmbracelet/glamour v0.6.0 // indirect
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dlclark/regexp2 v1.4.0 // indirect
github.com/emirpasic/gods v1.12.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/felixge/httpsnoop v1.0.2 // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/go-git/go-git/v5 v5.4.2 // indirect
Expand All @@ -38,56 +47,56 @@ require (
github.com/google/go-github/v47 v47.0.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
github.com/honeycombio/beeline-go v1.4.1 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.10.3 // indirect
github.com/honeycombio/beeline-go v1.11.1 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/manifoldco/promptui v0.9.0 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/microcosm-cc/bluemonday v1.0.17 // indirect
github.com/microcosm-cc/bluemonday v1.0.21 // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.9.0 // indirect
github.com/muesli/termenv v0.13.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/prometheus/client_golang v1.12.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.33.0 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/schollz/progressbar/v3 v3.9.0 // indirect
github.com/schollz/progressbar/v3 v3.13.1 // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/xanzy/ssh-agent v0.3.1 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yuin/goldmark v1.4.13 // indirect
github.com/yuin/goldmark v1.5.2 // indirect
github.com/yuin/goldmark-emoji v1.0.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 // indirect
go.opentelemetry.io/otel v1.9.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.9.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.9.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.9.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.33.0 // indirect
go.opentelemetry.io/otel v1.14.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.14.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.14.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.14.0 // indirect
go.opentelemetry.io/otel/metric v0.31.0 // indirect
go.opentelemetry.io/otel/sdk v1.9.0 // indirect
go.opentelemetry.io/otel/trace v1.9.0 // indirect
go.opentelemetry.io/proto/otlp v0.18.0 // indirect
go.opentelemetry.io/otel/sdk v1.14.0 // indirect
go.opentelemetry.io/otel/trace v1.14.0 // indirect
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
golang.org/x/crypto v0.11.0 // indirect
golang.org/x/net v0.12.0 // indirect
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a // indirect
golang.org/x/oauth2 v0.4.0 // indirect
golang.org/x/sys v0.10.0 // indirect
golang.org/x/term v0.10.0 // indirect
golang.org/x/text v0.11.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220111164026-67b88f271998 // indirect
google.golang.org/grpc v1.46.2 // indirect
google.golang.org/protobuf v1.28.0 // indirect
google.golang.org/genproto v0.0.0-20230127162408-596548ed4efa // indirect
google.golang.org/grpc v1.53.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 696599a

Please sign in to comment.