You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sl...@apache.org on 2025/05/20 21:03:27 UTC

(daffodil) branch main updated: Fix old release candidate container to get version correctly

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

slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git


The following commit(s) were added to refs/heads/main by this push:
     new dd80bc8c9 Fix old release candidate container to get version correctly
dd80bc8c9 is described below

commit dd80bc8c942938d8655b4c0604e2724d6be7043d
Author: Steve Lawrence <sl...@apache.org>
AuthorDate: Tue May 20 15:34:37 2025 -0400

    Fix old release candidate container to get version correctly
    
    The new release candidate workflow expects version information to come
    from the VERSION file instead of grepping through build.sbt or
    package.json files. We still need the old container to work as a backup
    until we fully switch over to the new release workflow, so this fixes it
    to use the right files. This also uses a to find unidoc so we don't have
    to figure out which scala version is used for docs.
    
    DAFFODIL-2971
---
 containers/release-candidate/src/daffodil-release-candidate | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/containers/release-candidate/src/daffodil-release-candidate b/containers/release-candidate/src/daffodil-release-candidate
index e51df69f6..31b62ecec 100755
--- a/containers/release-candidate/src/daffodil-release-candidate
+++ b/containers/release-candidate/src/daffodil-release-candidate
@@ -231,16 +231,7 @@ svn checkout https://dist.apache.org/repos/dist/dev/daffodil/$PROJECT_DIST_DIR $
 
 pushd $REPO_ROOT/$DAFFODIL_CODE_REPO &> /dev/null
 
-case $PROJECT_REPO in
-  "daffodil" | "daffodil-sbt")
-    VERSION=$(grep 'version :=' build.sbt | cut -d\" -f2)
-    SCALA_BINARY_VERSION=$(grep 'scalaVersion :=' build.sbt | cut -d\" -f2 | cut -d. -f1,2)
-    ;;
-  "daffodil-vscode")
-    VERSION=$(grep '"version"' package.json | cut -d\" -f4)
-    ;;
-esac
-
+VERSION=$(cat VERSION)
 if [[ $VERSION == *SNAPSHOT* ]]; then
   echo -e "\n!!! $PROJECT_NAME version ($VERSION) should not contain SNAPSHOT for a release !!!\n";
   if [ "$DRY_RUN" = true ]; then
@@ -316,7 +307,7 @@ case $PROJECT_REPO in
     rm -rf $DAFFODIL_DOCS_DIR
     mkdir -p $DAFFODIL_DOCS_DIR/{javadoc,scaladoc}/
     cp -R target/javaunidoc/* $DAFFODIL_DOCS_DIR/javadoc/
-    cp -R target/scala-$SCALA_BINARY_VERSION/unidoc/* $DAFFODIL_DOCS_DIR/scaladoc/
+    cp -R target/scala-*/unidoc/* $DAFFODIL_DOCS_DIR/scaladoc/
     cp target/tunables.md $DAFFODIL_SITE_DIR/site/
 
     echo "Installing Site Tutorials..."