Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

generate-mocks makefile command fails with error #408

@hermanschaaf

Description

@hermanschaaf

Describe the bug

From a clean repo on the main branch:

go generate ./client/services/...
# command-line-arguments
./prog.go:27:49: undefined: services.SubscriptionGetter
# command-line-arguments
./prog.go:27:49: undefined: services.SubscriptionGetter
prog.go:14:2: no required module provides package github.com/cloudquery/cq-provider-azure/client/services: go.mod file not found in current directory or any parent directory; see 'go help modules'
prog.go:12:2: no required module provides package github.com/golang/mock/mockgen/model: go.mod file not found in current directory or any parent directory; see 'go help modules'
2022/07/07 16:55:38 Loading input failed: exit status 1
client/services/services.go:21: running "mockgen": exit status 1
make: *** [generate-mocks] Error 1

Expected Behavior

Mocks should be generated without error

Steps to Reproduce

See above

Possible Solution

From a cursory glance, it seems like the mock generation code is duplicated in services.go, and the entry for Subscriptions there is referring to SubscriptionGetter instead of SubscriptionsClient. But since it's duplicated, maybe we can remove all those comments in services.go?

Provider and CloudQuery version

latest

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions