- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Dear Expert,
In SASStudio, I tried to clone git repo by invoking git command via x statement, but return 'git command not found error', seems SAS will search the git command on the compute server that current SAS session connecting to. I connected to compute server pod shell, but it even have no dnf command, so how to install git on compute server?
the code:
data _null_;
x "git clone giturl localdir";
run;
Thanks!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Ok, found a indirectly way to do so, just build a static git command under the NFS folder /data/sascode which can be accessed by computer server as mapped folder /sascode, then this git command can be executed on compute server now:
static built git command is the key, it does not need the third party components which are not available on compute server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You could use git_clone() instead, see https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.5/lefunctionsref/n10pxql65jtf4sn11m3d6jzcrgcz.h... for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hope Viya will provide a simple way to let user install other software that can be invoked by x statement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
https://go.documentation.sas.com/doc/en/webeditorcdc/5.2/webeditorug/n0vksc2mc4hpypn1q87623fbxp55.ht...
Alternatively, you could clone the repository outside of the container and mount that repository into the container as a volume.
Greg Wootton | Principal Systems Technical Support Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, yes, but where can I add --depth or other git option with this way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Ok, found a indirectly way to do so, just build a static git command under the NFS folder /data/sascode which can be accessed by computer server as mapped folder /sascode, then this git command can be executed on compute server now:
static built git command is the key, it does not need the third party components which are not available on compute server.