Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Args: Add path arg type to fix working directory handling #442

Closed
wants to merge 1 commit into from

Conversation

d3sch41n
Copy link
Contributor

Summary:

  • Add new argument type path:
  • This makes relative paths work correctly when passed as arguments
  • Previously, if you passed --arg myarg=foo/bar the behavior was busted because the TTP will change its working directory to the parent directory of the TTP's YAML file, and foo/bar won't exist there, even if it existed in the directory from which you invoked ttpforge :(
  • Updated all examples to use the new arguments

Reviewed By: d0n601

Differential Revision: D51475492

Summary:
* Add new argument type `path:`
* This makes relative paths work correctly when passed as arguments
* Previously, if you passed `--arg myarg=foo/bar` the behavior was busted because the TTP will change its working directory to the parent directory of the  TTP's YAML file, and `foo/bar` won't exist there, even if it existed in the directory from which you invoked ttpforge :(
* Updated all examples to use the new arguments

Reviewed By: d0n601

Differential Revision: D51475492
@TTPForge-bot TTPForge-bot added the area/go Changes made to go resources label Nov 21, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51475492

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 246f1a2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/go Changes made to go resources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants