Hi @tristanlg,
Unfortunately I don’t think this PR will solve your problem. The path descriptor does not support versioning the way you’re trying to use it and this PR is meant to solve a different issue. But I do think I have a work-around you could try.
As you’ve noticed already, the path
value in the descriptor has its environment variables resolved. So you could concatenate both your environment variables together and place them in the path like this:
path: ${WORKFILES2_PATH}/${WORKFILES2_VERSION}
If you don’t specify a version
parameter, the version will be called Undefined
which makes it hard to track which version of an app you’re using.

The solution would be to also include the version parameter. Your descriptor would look like this
apps.tk-multi-workfiles2.location:
type: path
path: ${WORKFILES2_PATH}/${WORKFILES2_VERSION}
name: tk-multi-workfiles2
version: ${WORKFILES2_VERSION}
This is where this PR does help you. Currently, the above descriptor will work but the environment variable in the version
parameter is not resolved. So you will see something like this in your app (my test was with the tk-multi-publish2
app instead of the tk-mutli-workfile2
):

But once this PR is merged, you should see the correct version showing up in the app as well.

I hope that helps.