Skip to content

Incorrect project structure gives an unhelpful error message #383

@Ekberg

Description

@Ekberg

Please answer these questions before submitting a bug report.

What version of godog are you using?

0.11.0

What version of Go are you using?

1.16.2

What did you do?

Created a new project with the following structure,

|-- features
|   `-- health.feature
|-- main.go
|-- Dockerfile
|-- go.mod
`-- go.sum

My main.go,

package main

import "github.com/cucumber/godog"

func InitializeScenario(ctx *godog.ScenarioContext) {

}

I wanted to confirm that my Dockerfile was correctly working and running this minimal example with godog. But it failed, I then tried running it with my local copy of godog, but that failed as well.

After doing the following change it worked,

$ mv main.go main_test.go

What did you expect to see?

A more informative error message on why godog failed with my minimal example.

What did you see instead?

$ godog
failed to compile testmain package: exit status 1 - output: compile: -importcfg: open /tmp/go-build1250231118/b001/importcfg.link: no such file or directory

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions