apupier commented on PR #1566:
URL: https://github.com/apache/camel-kamelets/pull/1566#issuecomment-1705315782

   currently lost with go ( I think it is the first time that I modify a go 
file), various errors with my different attempts, some of them:
   - `Error: validator.go:13:2: no required module provides package 
github.com/apache/camel-k/v2/pkg/apis/camel/v1; to add it:`
   - ```Error: ./validator.go:168:23: undefined: 
"github.com/apache/camel-k/pkg/apis/camel/v1".JSONSchemaProp
   Error: ./validator.go:177:29: undefined: 
"github.com/apache/camel-k/pkg/apis/camel/v1".JSONSchemaProp
   Error: ./validator.go:422:26: undefined: 
"github.com/apache/camel-k/pkg/apis/camel/v1".Kamelet
   Error: ./validator.go:450:22: undefined: 
"github.com/apache/camel-k/pkg/apis/camel/v1".Kamelet
   Error: ./validator.go:494:2: undefined: 
"github.com/apache/camel-k/pkg/apis/camel/v1".Kamelet
   ```
   - ```
   go get github.com/apache/camel-k/v2/pkg/apis/camel
   go: errors parsing go.mod:
   /home/apupier/git/camel-kamelets/script/validator/go.mod:7:2: require 
github.com/apache/camel-k/v2/pkg/apis/camel: version "v2.0.1" invalid: should 
be v0 or v1, not v2
   (base) [apupier@localhost validator]$ go get 
github.com/apache/camel-k/v2/pkg/apis/camel
   verifying github.com/mikefarah/yaml/[email protected]/go.mod: checksum mismatch
        downloaded: h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
        go.sum:     h1:ahVqZF4n1W4NqwvVnZzC4es67xsW9uR/RRf2RRxieJU=
   
   SECURITY ERROR
   This download does NOT match an earlier download recorded in go.sum.
   The bits may have been replaced on the origin server, or an attacker may
   have intercepted the download attempt.
   
   For more information, see 'go help module-auth'.
   ```
   
   (to say that if someone know what to change in the go files, they will be a 
lot faster than me)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to