Skip to content

Conversation

@isaac-fletcher
Copy link
Contributor

Summary:
The path arg type was not being evaluated based on the path of the TTP YAML. This caused relative paths such as default: <FILE> or default: ./<FILE> to resolve based on the path you executed ttpforge from as opposed to the path of the YAML.

This has been updated to resolve relative to the YAML when provided as a default value and resolve relative to the current working directory when provided as a command-line argument.

Additionally added handling for variable expansion within the shell. This should be helpful for TTPs referencing variables like $HOME or alike.

Reviewed By: RoboticPrism

Differential Revision: D85156301

@meta-codesync
Copy link

meta-codesync bot commented Oct 24, 2025

@isaac-fletcher has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85156301.

isaac-fletcher added a commit to isaac-fletcher/TTPForge that referenced this pull request Oct 24, 2025
…or#571)

Summary:

The path arg type was not being evaluated based on the path of the TTP YAML. This caused relative paths such as `default: <FILE>` or `default: ./<FILE>` to resolve based on the path you executed ttpforge from as opposed to the path of the YAML.

This has been updated to resolve relative to the YAML when provided as a default value and resolve relative to the current working directory when provided as a command-line argument.

Additionally added handling for variable expansion within the shell. This should be helpful for TTPs referencing variables like $HOME or alike.

Reviewed By: RoboticPrism

Differential Revision: D85156301
…or#571)

Summary:

The path arg type was not being evaluated based on the path of the TTP YAML. This caused relative paths such as `default: <FILE>` or `default: ./<FILE>` to resolve based on the path you executed ttpforge from as opposed to the path of the YAML.

This has been updated to resolve relative to the YAML when provided as a default value and resolve relative to the current working directory when provided as a command-line argument.

Additionally added handling for variable expansion within the shell. This should be helpful for TTPs referencing variables like $HOME or alike.

Reviewed By: RoboticPrism

Differential Revision: D85156301
@meta-codesync
Copy link

meta-codesync bot commented Oct 24, 2025

This pull request has been merged in c5c6f02.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants