Enable SAS_PACKAGES in SASjs Server
allanbowe opened this issue ยท comments
Allan Bowe commented
SAS_PACKAGES is a SAS-native approach for package management in SAS.
The source repo is here: https://github.com/yabwon/SAS_PACKAGES
The high level actions to enable SAS Packages are:
- Add the SAS_PACKAGES system macros to SASAUTOS
- Provision a directory for holding SAS_PACKAGES
- Inject a
filename packages "{directory}";
statement into the autoexec
The detailed actions necessary are as follows:
- rename
${sasjs_root}/sasjscore
to${sasjs_root}/sas/sasautos
- during each build/deployment of sasjs/server, grab the SAS_PACKAGES repo and insert the following macros into the above folder: https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Macros
- Fix
getMacros()
function to use the above directory:Line 30 in 375f924
- add a
${sasjs_root}/sas/sas_packages
directory (during deployment) - insert the following line:
filename packages "${sasjs_root}/sas/sas_packages";
in https://github.com/sasjs/server/blob/main/api/src/controllers/internal/Session.ts#L107
SASjs Bot commented
๐ This issue has been resolved in version 0.23.0 ๐
The release is available on:
- GitHub release
v0.23.0
Your semantic-release bot ๐ฆ๐