Skip to content

Godog command returns an error with Go 1.18 #464

@tnerolftnerolf

Description

@tnerolftnerolf

👓 What did you see?

After migration from Go 1.17 to 1.18, when using the godog command, I systematically got "failed to compile testmain package: exit status 1 - output: compile: /tmp/go-build1485890205/b001/importcfg.link:439: unknown directive "modinfo"

✅ What did you expect to see?

godog to run available tests

📦 Which version are you using?

The problem appeared after upgrading from Go 1.17 to 1.18.
I was using godog v0.12.0, but the problem is still the same on v0.12.4.

I have cloned the godog repo, and the issue also appear when running godog tests.

🔬 How could we reproduce it?

Steps to reproduce the behavior:

  1. Install Go 1.18
  2. cd to a directory where your godog tests were correctly passing OK
  3. run godog command
  4. an error like "failed to compile testmain package: exit status 1 - output: compile: /tmp/go-build1485890205/b001/importcfg.link:439: unknown directive "modinfo" shall be displayed:

🤔 Anything else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions