Open-source Languages & Tools for z/OS

 View Only
  • 1.  zOS git clone https://... fails helper not found git 2.3.5 on z/OS 2.4

    Posted 11-30-2023 11:20

    I have setup git and cannot clone a repo using either ssh or https.  This issue is specifically about https and the error I get which is:
    fatal: Unable to find remote helper for 'https'

    I have set the environment variables to the correct locations

    GIT_EXEC_PATH=/_PRDS/PTZ/git/libexec/git-core
    GIT_MAN_PATH=/_PRDS/PTZ/git/man
    GIT_SHELL=/_PRDS/PTZ/bash/bin/bash
    GIT_TEMPLATE_DIR=/_PRDS/PTZ/git/share/git-core/templates

    PERL5LIB=/var/rocket/git/lib/perl5

    I followed the recommendations in zOS git clone https://... fails helper not found git 2.14.4 to no avail sadly.

    curl and openssl are installed and available via my path.

    Any ideas?

    Regards,

    Jonathan



    ------------------------------
    Jonathan Juler
    National Australia Bank Limited
    Wantirna VIC AU
    ------------------------------


  • 2.  RE: zOS git clone https://... fails helper not found git 2.3.5 on z/OS 2.4

    ROCKETEER
    Posted 12-01-2023 06:57

    Hi Jonathan,

    If you are using the Git 2.3.5, it is a bug in the old version.
    It should be fixed in Git 2.14 and later.
    The another reason is an incorrect setting of GIT_EXEC_PATH.

    I would recommend to update git to 2.14.4 or to git 2.26.2.
    These versions are available as the conda packages in zoss-appdev channel:
    https://anaconda.org/zoss-appdev/git/files

    Here you can find the documentation about z/OS Miniconda installation and usage:
    https://docs.rocketsoftware.com/bundle/openappdev_ug_20/page/pwl1683809754654.html
    or on the videos:
    https://www.youtube.com/playlist?list=PLrS4TQFvievQZ6fm6VEH_AhNqi48txrM6

    Thanks,
    Sergey




    ------------------------------
    Sergey Rezepin
    Rocket Software
    ------------------------------



  • 3.  RE: zOS git clone https://... fails helper not found git 2.3.5 on z/OS 2.4

    PARTNER
    Posted 12-01-2023 07:55

    Hi Jonathan, 

    Based on your environment variables it looks like you are attempting to use the Ported Tools version of Git delivered by Kyndryl's GSD Platform product PTZ100.  While this version of Git works ok it is now functionally stable.  The only version of Git receiving ongoing Git maintenance is the version of Git found in GSD Platform product group CDA458  (Rockets z/OS Miniconda). It has Git at 2.26.2-84. 

    That said, the value you have for PERL5LIB is incorrect is should be /_PRDS/PTZ/git/share/perl/5.24.1  

    As a guide, here is how I setup by environment variables for Git in Ported Tools (PTZ100), which I no longer use.

    [USSENV]                                                          
    PTZBASE=/_PRDS/PTZ                                                
    GITBASE={$PTZBASE}/git                                            
    ZGITBASE=/_APPS/zGIT                                              
    _BPX_SHAREAS=YES                                                  
    _BPXK_AUTOCVT=ON                                                  
    _TAG_REDIR_IN=TXT                                                 
    _TAG_REDIR_OUT=TXT                                                
    _TAG_REDIR_ERR=TXT                                                
    _CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)                   
    PATH=/bin:{$GITBASE}/bin:{$PTZBASE}/perl/bin:{$PTZBASE}/bash/bin  
    PERL5LIB={$GITBASE}/share/perl/5.24.1                             
    LIBPATH={$GITBASE}/curl/lib/                                      
    GIT_SHELL={$PTZBASE}/bash/bin/bash                                
    GIT_TEMPLATE_DIR={$ZGITBASE}/.zGIT-templates                      
    GIT_EXEC_PATH={$GITBASE}/libexec/git-core                         

    And here is how I setup my environment for Miniconda (CDA458)                                           

    [USSENV]                                        
    CDABASE=/_PRDS/CDA                              
    ZGITBASE=/_APPS/zGIT                            
    _BPX_SHAREAS=YES                                
    _BPXK_AUTOCVT=ON                                
    _TAG_REDIR_IN=TXT                               
    _TAG_REDIR_OUT=TXT                              
    _TAG_REDIR_ERR=TXT                              
    _CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON) 
    PATH={$CDABASE}/bin:/bin                        
    PERL5LIB={$CDABASE}/share/perl5                 
    CURL_CA_BUNDLE={$CDABASE}/etc/ssl/cacert.pem    
    LIBPATH={$CDABASE}/lib/                         
    GIT_SHELL={$CDABASE}/bin/bash                   
    GIT_TEMPLATE_DIR={$ZGITBASE}/.zGIT-templates    
    GIT_EXEC_PATH={$CDABASE}/libexec/git-core       

    Also,  if your intention is to manage traditional z/OS datasets such as PS, PDS and PDSE, the I highly recommend you request GSD Platform product group ZGT140  (zGit v1.4.0).  



    ------------------------------
    Gary Freestone
    Systems Programmer
    Kyndryl Inc
    Mt Helen VIC AU
    ------------------------------



  • 4.  RE: zOS git clone https://... fails helper not found git 2.3.5 on z/OS 2.4

    Posted 12-03-2023 20:57

    Thanks for the reply Gary.  We are moving to the CDA458 as part of our cyclic upgrade process.  I was trying to test connectivity in the meantime.  I will give your suggestions re the environment variables a go and request the ZGT140 offering if my colleagues haven't beaten me to it.  Thanks again!



    ------------------------------
    Jonathan Juler
    National Australia Bank Limited
    Wantirna VIC AU
    ------------------------------



  • 5.  RE: zOS git clone https://... fails helper not found git 2.3.5 on z/OS 2.4

    Posted 12-03-2023 20:59

    Thanks for the reply Sergey.  I will take your suggestions along with Gary's and see how I go.



    ------------------------------
    Jonathan Juler
    National Australia Bank Limited
    Wantirna VIC AU
    ------------------------------