From 736a6cbc988df63a104de1c998715681b68d3987 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Tue, 25 Feb 2025 12:47:59 +0530 Subject: [PATCH] UPDATE: Added a note for adding forward slash while copying files --- website/content/docs/provisioners/file.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/content/docs/provisioners/file.mdx b/website/content/docs/provisioners/file.mdx index 70d364971..4e9d96e68 100644 --- a/website/content/docs/provisioners/file.mdx +++ b/website/content/docs/provisioners/file.mdx @@ -91,6 +91,11 @@ directly. This behavior was adopted from the standard behavior of rsync. Note that under the covers, rsync may or may not be used. +**Note:** Packer does not infer behaviors based on the guest operating system, +as this would add unnecessary complexity and reduce maintainability. To ensure +consistent behavior across all platforms, use a trailing forward slash when +specifying directories, even when working with Windows guests. + ## Uploading files that don't exist before Packer starts In general, local files used as the source **must** exist before Packer is run.