Skip to content

Commit

Permalink
fix error that prevented using quarkus in M4
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Nov 13, 2019
1 parent 9b37384 commit 7432400
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkg/trait/quarkus.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ func (t *quarkusTrait) Apply(e *Environment) error {
return nil
}

// InfluencesKit overrides base class method
func (t *quarkusTrait) InfluencesKit() bool {
return true
}

func (t *quarkusTrait) loadOrCreateCatalog(e *Environment, camelVersion string, runtimeVersion string) error {
ns := e.DetermineNamespace()
if ns == "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/trait/trait_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func TestConfigureVolumesAndMounts(t *testing.T) {

func TestOnlySomeKitsInfluenceBuild(t *testing.T) {
c := NewTraitTestCatalog()
buildTraits := []string{"builder"}
buildTraits := []string{"builder", "quarkus"}

for _, trait := range c.allTraits() {
if trait.InfluencesKit() {
Expand Down

0 comments on commit 7432400

Please sign in to comment.