Skip to content

Commit

Permalink
NPT-796 Pin Graphql dependency in generated folder (#109)
Browse files Browse the repository at this point in the history
* debug

* graphql pod restart because go mod versions upgraded , even pinned in graphql-gen folder

Add go mod edit -require in pin_deps for generated folder , avoids the auto dependency update in gqlgen folder due to generated folder using latest version

Co-authored-by: rjanakiraman <[email protected]>
  • Loading branch information
ramramu3433 and janakiramanmesh7 authored Jan 20, 2023
1 parent 70402f2 commit ce0417f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions compiler/scripts/pin_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,16 @@ go mod edit -replace github.com/vmware-tanzu/graph-framework-for-microservices/g
go mod edit -replace github.com/vmware-tanzu/graph-framework-for-microservices/kube-openapi=${COMPILER_SRC_DIRECTORY}/../kube-openapi
go mod edit -replace github.com/vmware-tanzu/graph-framework-for-microservices/nexus=${COMPILER_SRC_DIRECTORY}/../nexus
go mod edit -require github.com/cespare/xxhash/[email protected]
go mod edit -require github.com/google/[email protected]
go mod edit -require github.com/imdario/[email protected]
go mod edit -require k8s.io/[email protected]
go mod edit -require k8s.io/[email protected]
go mod edit -require golang.org/x/[email protected]
go mod edit -require golang.org/x/[email protected]
go mod edit -require golang.org/x/[email protected]
go mod edit -require golang.org/x/[email protected]
go mod edit -require golang.org/x/[email protected]
go mod edit -require k8s.io/klog/[email protected]
go mod edit -require golang.org/x/[email protected]
go mod edit -require google.golang.org/[email protected]

3 changes: 2 additions & 1 deletion compiler/scripts/pin_graphql_build_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ go mod edit -require sigs.k8s.io/[email protected]
go mod edit -replace github.com/vmware-tanzu/graph-framework-for-microservices/gqlgen=${COMPILER_SRC_DIRECTORY}/../gqlgen
go mod edit -replace github.com/vmware-tanzu/graph-framework-for-microservices/kube-openapi=${COMPILER_SRC_DIRECTORY}/../kube-openapi
go mod edit -replace github.com/vmware-tanzu/graph-framework-for-microservices/nexus=${COMPILER_SRC_DIRECTORY}/../nexus
go mod edit -require github.com/google/[email protected]
go mod edit -require github.com/cespare/xxhash/[email protected]
go mod edit -require github.com/google/[email protected]
go mod edit -require github.com/imdario/[email protected]
go mod edit -require k8s.io/[email protected]
go mod edit -require k8s.io/[email protected]
Expand All @@ -18,3 +18,4 @@ go mod edit -require golang.org/x/[email protected]
go mod edit -require golang.org/x/[email protected]
go mod edit -require k8s.io/klog/[email protected]
go mod edit -require golang.org/x/[email protected]
go mod edit -require google.golang.org/[email protected]

0 comments on commit ce0417f

Please sign in to comment.