[ 
https://issues.apache.org/jira/browse/CASSANDRA-18204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17689961#comment-17689961
 ] 

David Capwell commented on CASSANDRA-18204:
-------------------------------------------

Here is my test

{code}
git clone --depth 1 --branch accord-submodules 
https://github.com/dcapwell/cassandra.git deleteme
cd deleteme
ant artifacts
cd /tmp
tar zxf deleteme/build/apache-cassandra-4.2-SNAPSHOT-src.tar.gz
cd apache-cassandra-4.2-SNAPSHOT-src/
ant jar
{code}

Fails with

{code}
/private/tmp/apache-cassandra-4.2-SNAPSHOT-src/build.xml:374: Execute failed: 
java.io.IOException: Cannot run program 
"/private/tmp/apache-cassandra-4.2-SNAPSHOT-src/.build/git/install-git-defaults.sh"
 (in directory "/private/tmp/apache-cassandra-4.2-SNAPSHOT-src"): error=13, 
Permission denied
...
$ ls -l 
/private/tmp/apache-cassandra-4.2-SNAPSHOT-src/.build/git/install-git-defaults.sh
-rw-r--r--  1 dcapwell  wheel  3489 Feb 16 11:49 
/private/tmp/apache-cassandra-4.2-SNAPSHOT-src/.build/git/install-git-defaults.sh
{code}

Looks like source tar does not respect the file permissions... ill look into it

> CEP-15: (C*) Add git submodule for Accord
> -----------------------------------------
>
>                 Key: CASSANDRA-18204
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18204
>             Project: Cassandra
>          Issue Type: Task
>          Components: Accord
>            Reporter: David Capwell
>            Assignee: David Capwell
>            Priority: Normal
>             Fix For: 4.x
>
>          Time Spent: 8h
>  Remaining Estimate: 0h
>
> As talked about in dev@ thread "Intra-project dependencies”, we talked about 
> adding git submodules but before doing this had to work out a few issues 
> first; this ticket is to track this work.
> Goals
> * when checking out an older commit, or pulling in newer commits, the 
> submodule should also be updated automatically
> * release artifact must include the submodule and must be able to build 
> without issue
> * build.xml must be updated to build the submodule
> * build.xml must be updated to release the submodule jar



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to