Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go 1.20 internal error: package "..." without types was imported from "..." #535

Closed
1 of 5 tasks
dillonstreator opened this issue Feb 1, 2023 · 1 comment · Fixed by #536
Closed
1 of 5 tasks

Comments

@dillonstreator
Copy link
Contributor

dillonstreator commented Feb 1, 2023

Description

01 Feb 23 16:35 CST INF Starting mockery dry-run=false version=v2.16.0
01 Feb 23 16:35 CST INF Walking dry-run=false version=v2.16.0
2023/02/01 16:35:53 internal error: package "context" without types was imported from "..."

Mockery Version

v2.16.0

Golang Version

1.20

Installation Method

  • Binary Distribution
  • Docker
  • brew
  • go install
  • Other: [specify]

Steps to Reproduce

generating mocks for the following package definition results in error

package xyz

import "context"

type Thing interface {
	Do(ctx context.Context)
}

type Something struct{}

var _ Thing = (*Something)(nil)

func (s *Something) Do(ctx context.Context) {
}
@dillonstreator
Copy link
Contributor Author

bumping to golang.org/x/tools@v0.5.0 should resolve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant