From d9875b056a6c136b43d11a65fc821242622b20df Mon Sep 17 00:00:00 2001 From: Ramsai Polisetti <2400031616@kluniversity.in> Date: Mon, 24 Nov 2025 18:20:55 +0530 Subject: [PATCH] docs: add usage clarification to File builder Signed-off-by: Ramsai Polisetti <2400031616@kluniversity.in> --- website/content/docs/builders/file.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/content/docs/builders/file.mdx b/website/content/docs/builders/file.mdx index 87666cb3de2..f3823da2613 100644 --- a/website/content/docs/builders/file.mdx +++ b/website/content/docs/builders/file.mdx @@ -74,3 +74,11 @@ the artifact will be empty. artifact. - `content` (string) - The content that will be put into the artifact. +## Note on Usage + +When using the File builder, ensure that the source path you provide +exists on the local machine running Packer. If the path is incorrect, +Packer will return a "file not found" error during the build stage. + +This small clarification helps avoid common mistakes when working with +local-file-based artifact generation.