I have a pack (it is a Git repo) that I am attempting to install from disk using
st2 pack install file://<path to pack>
. The pack installs successfully, but there is
a lib
sub-directory within my actions
folder that is not moved into /opt/stackstorm/packs
.
Below is how my pack is structured on disk before installing:
> pwd
/home/justinm/mypack/actions
> ls -l
-rw-r--r--. 1 root root 470 Mar 24 2021 create_release.py
-rw-r--r--. 1 root root 483 Mar 23 16:08 create_release.yaml
-rw-r--r--. 1 root root 0 Feb 8 23:58 __init__.py
drwxr-xr-x. 2 root root 67 Feb 8 23:58 lib
-rw-r--r--. 1 root root 394 Mar 24 2021 list_releases.py
-rw-r--r--. 1 root root 404 Mar 23 16:13 list_releases.yaml
> ls -l lib
-rw-r--r--. 1 root root 2093 Mar 23 16:11 actions.py
-rw-r--r--. 1 root root 0 Feb 8 23:58 __init__.py
And here is a snippet from the log from when I installed this pack with the --debug
flag:
# -------- begin 140499208565520 request ----------
curl -X GET -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-requests/2.14.2' -H 'X-Auth-Token: aacc49af1148409aa9659e4f3d757d66' http://127.0.0.1:9101/v1/packs/mypack
# -------- begin 140499208565520 response ----------
{
"files": [
".gitignore",
"README.md",
"config.schema.yaml",
"icon.png",
"mypack.yaml.example",
"pack.yaml",
"requirements.txt",
"actions/__init__.py",
"actions/create_release.py",
"actions/create_release.yaml",
"actions/list_releases.py",
"actions/list_releases.yaml"
],
"name": "mypack",
"contributors": [],
"author": "justinm",
"description": "My test pack",
"system": {},
"email": "[email protected]",
"version": "1.0.0",
"dependencies": [],
"keywords": [],
"path": "/opt/stackstorm/packs/mypack",
"ref": "mypack",
"id": "605a5211a54923e4429fbfde",
"uid": "mypack"
}
The lib
directory is not included in the files
list, and it does not exist in
/opt/stackstorm/packs
either:
> ls -l /opt/stackstorm/packs/mypack/actions
-rwxrwxr-x. 1 root st2packs 470 Mar 24 09:19 create_release.py
-rwxrwxr-x. 1 root st2packs 483 Mar 24 09:19 create_release.yaml
-rwxrwxr-x. 1 root st2packs 0 Mar 24 09:19 __init__.py
-rwxrwxr-x. 1 root st2packs 394 Mar 24 09:19 list_releases.py
-rwxrwxr-x. 1 root st2packs 404 Mar 24 09:19 list_releases.yaml
My actions are failing because they rely on code in this lib
directory. Anyone have any
ideas? This lib
directory has been committed into my Git repo as well.