Skip to content

Commit

Permalink
ci: add dependabot config (#13)
Browse files Browse the repository at this point in the history
Previously, we used a fake 'latest' version number on the Go server dep
to force users to run `go mod tidy`. This would then have the
side-effect of pinning to the latest version.

This pins the version and configures Dependabot to update it.
  • Loading branch information
cwaldren-ld authored Aug 21, 2024
1 parent f357842 commit a99d9b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/" # Location of go.mod
schedule:
interval: "daily"
24 changes: 5 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,9 @@ module github.com/launchdarkly/hello-go

go 1.21

// READ THIS!
//
// This file has been deliberately checked in with "latest" instead of a specific
// version for the SDK packages, so that the Go compiler will pull in the latest
// published releases when the application is built. In a real application, go.mod
// would specify exact versions, but we want users who are running this demo to
// always get the latest version.
//
// Do not check in changes to this file with these packages pinned to a specific
// version. If you do that, the CI build will detect it and raise an error:
// "Undesirable specific version dependency!" You should then edit the file to
// set the versions of github.com/launchdarkly/go-sdk-common/v3 and
// github.com/launchdarkly/go-server-sdk/v7 back to "latest" and commit the change.

require (
github.com/launchdarkly/go-sdk-common/v3 latest
github.com/launchdarkly/go-server-sdk/v7 latest
github.com/launchdarkly/go-sdk-common/v3 v3.1.0
github.com/launchdarkly/go-server-sdk/v7 v7.6.1
)

require (
Expand All @@ -28,11 +14,11 @@ require (
github.com/launchdarkly/ccache v1.1.0 // indirect
github.com/launchdarkly/eventsource v1.6.2 // indirect
github.com/launchdarkly/go-jsonstream/v3 v3.0.0 // indirect
github.com/launchdarkly/go-sdk-events/v3 v3.2.0 // indirect
github.com/launchdarkly/go-sdk-events/v3 v3.4.0 // indirect
github.com/launchdarkly/go-semver v1.0.2 // indirect
github.com/launchdarkly/go-server-sdk-evaluation/v3 v3.0.0 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
golang.org/x/exp v0.0.0-20220823124025-807a23277127 // indirect
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa // indirect
golang.org/x/sync v0.8.0 // indirect
)

0 comments on commit a99d9b6

Please sign in to comment.