From e4c2ca9b294b2fdb8602c3c53d3b4a847f852dfb Mon Sep 17 00:00:00 2001 From: Andrei Ciobanu Date: Thu, 21 May 2026 09:39:11 +0300 Subject: [PATCH] Fix references from comments Signed-off-by: Andrei Ciobanu --- internal/command/import.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/command/import.go b/internal/command/import.go index e678019378..ae02b7db2e 100644 --- a/internal/command/import.go +++ b/internal/command/import.go @@ -75,8 +75,8 @@ func (c *ImportCommand) Run(rawArgs []string) int { traversal, travDiags := hclsyntax.ParseTraversalAbs(traversalSrc, "", hcl.Pos{Line: 1, Column: 1}) diags = diags.Append(travDiags) if travDiags.HasErrors() { - // NOTE: The call to registerSynthConfigSource works well with the view.Diagnostics too since the view is - // configured in [Meta.initConfigLoader] with a callback to get the sources when it prints the diagnostics. + // NOTE: The call to Loader.ForceFileSource works well with the view.Diagnostics too since the view is + // configured in [Meta.configLoader] with a callback to get the sources when it prints the diagnostics. c.configLoader().ForceFileSource("", traversalSrc) // so we can include a source snippet view.Diagnostics(diags) view.InvalidAddressReference() @@ -85,8 +85,8 @@ func (c *ImportCommand) Run(rawArgs []string) int { addr, addrDiags := addrs.ParseAbsResourceInstance(traversal) diags = diags.Append(addrDiags) if addrDiags.HasErrors() { - // NOTE: The call to registerSynthConfigSource works well with the view.Diagnostics too since the view is - // configured in [Meta.initConfigLoader] with a callback to get the sources when it prints the diagnostics. + // NOTE: The call to Loader.ForceFileSource works well with the view.Diagnostics too since the view is + // configured in [Meta.configLoader] with a callback to get the sources when it prints the diagnostics. c.configLoader().ForceFileSource("", traversalSrc) // so we can include a source snippet view.Diagnostics(diags) view.InvalidAddressReference()