You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This relates to #873 but is an issue on the export side. I'm using directory exports. When my action is exported, it writes an absolute path to the code in the Action manifest:
But this path is different on other developer machines (so if someone else runs the export, the path changes unexpectedly, and they can only run the import if they're using the same source code path) and our build environment (so our deployment pipeline fails because it can't find the file).
I am providing an absolute path as the output_folder; e.g. /app/auth0/infra is the path that was provided to the export command.
Expectation
The export should write the code as a relative path; ideally, relative to the output_folder provided to the CLI.
I would be willing to submit a PR for this change if you want it. Should it be configurable?
Reproduction
Given I have an Auth0 tenant with an Action configured
When I run the export command
Then the Action manifest contains an absolute path to the code file
And the path is not portable to other machines/build environments
Deploy CLI version
7.21.0
Node version
18.16.0
The text was updated successfully, but these errors were encountered:
Checklist
Description
This relates to #873 but is an issue on the export side. I'm using
directory
exports. When my action is exported, it writes an absolute path to the code in the Action manifest:But this path is different on other developer machines (so if someone else runs the export, the path changes unexpectedly, and they can only run the import if they're using the same source code path) and our build environment (so our deployment pipeline fails because it can't find the file).
I am providing an absolute path as the
output_folder
; e.g./app/auth0/infra
is the path that was provided to the export command.Expectation
The export should write the code as a relative path; ideally, relative to the
output_folder
provided to the CLI.I would be willing to submit a PR for this change if you want it. Should it be configurable?
Reproduction
Deploy CLI version
7.21.0
Node version
18.16.0
The text was updated successfully, but these errors were encountered: