You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Peter Slawski (JIRA)" <ji...@apache.org> on 2015/02/13 02:10:11 UTC

[jira] [Updated] (BIGTOP-1671) Fix handling symlinks when cloning git repos

     [ https://issues.apache.org/jira/browse/BIGTOP-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Slawski updated BIGTOP-1671:
----------------------------------
    Attachment: BIGTOP-1671.1.patch

The attached patch upgrades the version of Grgit so that Grgit's dependency, Jgit, is a newer version that supports native symbolic links. It also adds the the org.eclipse.jgit.java7 jar/bundle to the classpath. This is required for Jgit to handle symbolic links. This change has a side effect of now requiring Java 7 to be used in order to clone git repositories.

> Fix handling symlinks when cloning git repos
> --------------------------------------------
>
>                 Key: BIGTOP-1671
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1671
>             Project: Bigtop
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.9.0
>            Reporter: Peter Slawski
>         Attachments: BIGTOP-1671.1.patch
>
>
> Symlinks are not supported when cloning Git repositories via Gradle for development purposes.
> For example, in bigtop.mk when the following are set in the hue section, the symlink in the cloned repository are not created properly. Thus, building hue will fail
> {code:none}
> HUE_GIT_REPO=https://github.com/cloudera/hue.git
> HUE_GIT_REF=branch-3.6
> HUE_GIT_DIR=hue-release-$(HUE_BASE_VERSION)
> {code}
> {noformat}
> gradle realclean hue-rpm
> ...
> SyntaxError: invalid syntax
> --- Installing  into virtual-env
> Traceback (most recent call last):
>   File "setup.py", line 17, in <module>
>     from hueversion import VERSION
>   File "/workspace/workspace/hue-rpm/build/hue/rpm/BUILD/hue-release-3.6.0/desktop/core/hueversion.py", line 1
>     ../../VERSION
>     ^
> SyntaxError: invalid syntax
> {noformat}
> For cloning git repositories, Gradle uses Grgit. The version used does use a version of Jgit that supports native symlinks when cloning a Git repository. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)