From 8d9f0df7add983c058e453eaf92878aebec6155a 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 08e2f36fd..987b7de3b 100644 --- a/website/content/docs/provisioners/file.mdx +++ b/website/content/docs/provisioners/file.mdx @@ -96,6 +96,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.