Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions databuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
* Before going throught this code please read - https://go.dev/blog/laws-of-reflection
*/

// SupportPackageIsVersion1 is a compile-time assertion constant.
// Downstream packages reference this to enforce version compatibility.
const SupportPackageIsVersion1 = true

type builder struct {
fnValue reflect.Value // cached reflect.ValueOf(builder func) to avoid repeated reflection
In []string
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/go-coldbrew/data-builder
go 1.25.8

require (
github.com/go-coldbrew/tracing v0.0.7
github.com/go-coldbrew/tracing v0.1.0
github.com/goccy/go-graphviz v0.2.10
github.com/google/go-cmp v0.7.0
github.com/stretchr/testify v1.11.1
Expand Down Expand Up @@ -166,7 +166,6 @@ require (
github.com/nishanths/exhaustive v0.12.0 // indirect
github.com/nishanths/predeclared v0.2.2 // indirect
github.com/nunnatsa/ginkgolinter v0.23.0 // indirect
github.com/nxadm/tail v1.4.11 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
Expand Down Expand Up @@ -252,6 +251,7 @@ require (
google.golang.org/grpc v1.79.3 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ github.com/ghostiam/protogetter v0.3.20 h1:oW7OPFit2FxZOpmMRPP9FffU4uUpfeE/rEdE1
github.com/ghostiam/protogetter v0.3.20/go.mod h1:FjIu5Yfs6FT391m+Fjp3fbAYJ6rkL/J6ySpZBfnODuI=
github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c=
github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU=
github.com/go-coldbrew/tracing v0.0.7 h1:I6IG0EqIzP1E1w+YnFHXf3Xebuigy8r1khWWH20YR+g=
github.com/go-coldbrew/tracing v0.0.7/go.mod h1:aAiSSr0x7IcIUXTa7PgXewgav51O3TCuSF+DvaaSKZs=
github.com/go-coldbrew/tracing v0.1.0 h1:IwO19D3nDD3tLSGmS7s53IqML3874CAabydp+0CyaEY=
github.com/go-coldbrew/tracing v0.1.0/go.mod h1:H0X8EINrdeINzTGjsJJ0lxrKIYNP73bAQdPXbdQiY5E=
github.com/go-critic/go-critic v0.14.3 h1:5R1qH2iFeo4I/RJU8vTezdqs08Egi4u5p6vOESA0pog=
github.com/go-critic/go-critic v0.14.3/go.mod h1:xwntfW6SYAd7h1OqDzmN6hBX/JxsEKl5up/Y2bsxgVQ=
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
Expand Down
3 changes: 3 additions & 0 deletions plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import (
graphviz "github.com/goccy/go-graphviz"
)

// Compile-time version compatibility check.
var _ = tracing.SupportPackageIsVersion1
Comment thread
ankurs marked this conversation as resolved.

// ErrWTF is the error returned in case we find dependency resolution related errors, please report this
var ErrWTF = errors.New("what a terrible failure: this is likely a bug in dependency resolution, please report this")

Expand Down
Loading