This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 7432400  fix error that prevented using quarkus in M4
7432400 is described below

commit 7432400c5ccfcfa428f0d474025b3e35faccbab8
Author: Nicola Ferraro <ni.ferr...@gmail.com>
AuthorDate: Wed Nov 13 15:55:34 2019 +0100

    fix error that prevented using quarkus in M4
---
 pkg/trait/quarkus.go    | 5 +++++
 pkg/trait/trait_test.go | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/pkg/trait/quarkus.go b/pkg/trait/quarkus.go
index e51016b..1ebdecd 100644
--- a/pkg/trait/quarkus.go
+++ b/pkg/trait/quarkus.go
@@ -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 == "" {
diff --git a/pkg/trait/trait_test.go b/pkg/trait/trait_test.go
index 9aad728..c63bb86 100644
--- a/pkg/trait/trait_test.go
+++ b/pkg/trait/trait_test.go
@@ -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() {

Reply via email to