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

fix: extra_files failed to create dest subdirectories #89

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

chamcca
Copy link
Contributor

@chamcca chamcca commented Apr 27, 2023

Issue #, if available: Fixes: #88

Description of changes:

  • fix: files and extra_files failed to create destination subdirectories
  • new: pre_execution_commands and extra_pre_execution_commands to enable commands in the Build phase prior to remote_function execution

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -129,7 +129,10 @@ def generate_bundle(
if files is not None:
for src_file, name in files:
LOGGER.debug(f"***file={src_file}:name={name}")
shutil.copy(src=src_file, dst=os.path.realpath(os.path.join(bundle_dir, name)))
dst_file = os.path.realpath(os.path.join(bundle_dir, name))
if "/" in name:
Copy link
Contributor

Choose a reason for hiding this comment

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

How will this work on windows OS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

paths on windows for python still need to be specified with /.

@dgraeber dgraeber self-requested a review April 27, 2023 18:01
@dgraeber dgraeber merged commit cf7a926 into awslabs:main Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Cannot add files to bundle that are nested / not at root
2 participants