cmd/compile/internal/base, cmd/compile/internal/noder: "importmap" verb of -importcfg file has no effect #61206
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I was trying to use "importmap" verb of
-importcfg
file when run the compiler, but it had no effect.Looking into the code, I found out that the compiler never use "importmap" from importcfg.
It happens because of this condition which is always
true
when-importcfg
provided.Because of base.Flag.Cfg.PackageFile never equal to
nil
due to this lineWhat did you expect to see?
Actually I don't expect this to be fixed as I've started to use "packagefile" verb instead.
This functionality is dead at the moment (after removing
-importmap
flag) and-I
flag is dead too (unless no-importmap
flag provided).Probably "importmap" verb and
-I
flag should be just removed to simplify the compiler interface and avoid further confusion.The text was updated successfully, but these errors were encountered: