You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/10/20 11:45:17 UTC

[GitHub] [camel-k] squakez commented on pull request #3755: Fix get_catalog.sh when runtime is snapshot

squakez commented on PR #3755:
URL: https://github.com/apache/camel-k/pull/3755#issuecomment-1285385766

   > When building camel-k and referencing `RUNTIME_VERSION=1.15.1-SNAPSHOT` the `mvn -q dependency:copy` command downloads the file as `camel-k-catalog-1.15.1-20221020.064800-11-catalog.yaml` and the `./script/get_catalog.sh` script fails with `mv: cannot stat './script/..//resources/camel-k-catalog-1.15.1-SNAPSHOT-catalog.yaml': No such file or directory` When the user provided a snapshot repo, it fails because the remote file doesn't contain the `SNAPSHOT` suffix in the file name, but contains the timestamp as `camel-k-catalog-1.15.1-20221020.064800-11-catalog.yaml`
   
   Just tested locally and it works as expected:
   ```
   $ mvn -q dependency:copy -Dartifact="org.apache.camel.k:camel-k-catalog:1.12.1-SNAPSHOT:yaml:catalog" -DoutputDirectory=.
   $ cat camel-k-catalog-1.12.1-SNAPSHOT-catalog.yaml 
   # ---------------------------------------------------------------------------
   # Licensed to the Apache Software Foundation (ASF) under one or more
   # contributor license agreements.  See the NOTICE file distributed with
   ...
   apiVersion: camel.apache.org/v1
   kind: CamelCatalog
   metadata:
     name: camel-catalog-1.12.1-snapshot
   ```


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org