Skip to content

Commit

Permalink
Use go workspace to configure multimodule dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
claudio4j committed Aug 23, 2023
1 parent 44610e6 commit 0710267
Show file tree
Hide file tree
Showing 5 changed files with 216 additions and 21 deletions.
10 changes: 0 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ go 1.20

require (
github.com/Masterminds/semver v1.5.0
github.com/apache/camel-k/v2/pkg/apis/camel v0.0.0
github.com/apache/camel-k/v2/pkg/client/camel v0.0.0
github.com/apache/camel-k/v2/pkg/kamelet/repository v0.0.0
github.com/container-tools/spectrum v0.6.34
github.com/evanphx/json-patch v5.6.0+incompatible
github.com/fsnotify/fsnotify v1.6.0
Expand Down Expand Up @@ -160,10 +157,3 @@ require (
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

// Local modules
replace (
github.com/apache/camel-k/v2/pkg/apis/camel => ./pkg/apis/camel
github.com/apache/camel-k/v2/pkg/client/camel => ./pkg/client/camel
github.com/apache/camel-k/v2/pkg/kamelet/repository => ./pkg/kamelet/repository
)
8 changes: 8 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
go 1.20

use (
.
./pkg/apis/camel
./pkg/client/camel
./pkg/kamelet/repository
)
Loading

0 comments on commit 0710267

Please sign in to comment.