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

feat: update copy_to_directory tool to accept the name of its workspace and automatically include files from it #488

Merged
merged 1 commit into from Sep 21, 2023

Conversation

dgp1130
Copy link
Contributor

@dgp1130 dgp1130 commented Jul 30, 2023

Refs #359.

This allows copy_to_directory to be run in an external workspace and include files from that workspace automatically once the copy_to_directory rule is updated. The rule update needs to be separated from the tool update because the tool is pre-built and vendored rather than built at HEAD.


This was split off from #360 in order to land the Go changes first and release a new version of the tool.

The new workspace name argument needs to be optional to avoid breaking the copy_to_directory rule. Once the rule is updated and released, we should consider making this argument required if the tool is not used elsewhere.

I didn't see any direct tests or documentation of the tool itself, so I left those for #360 which will test/document the copy_to_directory rule itself. Please let me know if I missed something.

I'm also not totally sure if this should be classified as a user-visible feat commit or a simple refactor. Probably depends on whether the tool itself is considered public API independent of the copy_to_Directory rule?

Type of change

  • New feature or functionality (change which adds functionality)

…pace and automatically include files from it

Refs aspect-build#359.

This allows `copy_to_directory` to be run in an external workspace and include files from that workspace automatically once the `copy_to_directory` rule is updated. The rule update needs to be separated from the tool update because the tool is pre-built and vendored rather than built at HEAD.
@alexeagle
Copy link
Member

Thanks! @gregmagolan is the author here so I'd like an 👁️ from him

@alexeagle
Copy link
Member

ah, after #532 lands we won't have to do this "release in two halves" dance anymore, so your original PR could land as-is without splitting.

Copy link
Member

@gregmagolan gregmagolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dgp1130

@alexeagle alexeagle merged commit 077e4b0 into aspect-build:main Sep 21, 2023
1 check passed
@dgp1130 dgp1130 deleted the external-copy-directory-tool branch October 10, 2023 01:06
@dgp1130
Copy link
Contributor Author

dgp1130 commented Oct 10, 2023

Since this got merged, don't we still need to merge #360 as well? Otherwise the workspace name is never passed into the tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants