Skip to content

[Bug][generator] incorrect import path in plugin template #4584

Description

@jakezhu9

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

I tried to create a new plugin following the instructions in the docs, but some of the code generated using the template had incorrect import paths. For example, the following import path was wrong:

package main

import (
	"github.com/apache/incubator-devlake/plugins/trello/impl"
	"github.com/apache/incubator-devlake/runner" // incorrect
	"github.com/spf13/cobra"
)

I also discovered that this issue was caused by #3884.

What do you expect to happen

correct import path, for example

package main

import (
	"github.com/apache/incubator-devlake/plugins/trello/impl"
	"github.com/apache/incubator-devlake/core/runner"  // correct
	"github.com/spf13/cobra"
)

How to reproduce

go run generator/main.go create-plugin test

Anything else

No response

Version

main

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions