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

Error When Building Docker Plugin for Kuiper - Missing go.mod for Required Modules #3503

Open
sanjayN4497 opened this issue Jan 13, 2025 · 1 comment

Comments

@sanjayN4497
Copy link

I am following the tutorial from the official Kuiper documentation on how to build a Docker image for the plugin, specifically the "Docker Compile" step in below article.

(https://ekuiper.org/docs/en/v1.14/extension/native/develop/plugins_tutorial.html#docker-compile)

However, I am encountering an error when attempting to compile the Docker image. Below is the error message I am receiving:

/go #   go build -trimpath --buildmode=plugin -o ./kuiper/_build/prod/plugins/sinks/kinesis@v1.1.0.so ./kinesis/sinks/kinesis.go
kinesis/sinks/kinesis.go:5:2: no required module provides package github.com/lf-edge/ekuiper/extensions/sinks/kinesis/ext: go.mod file not found in current directory or any parent directory; see 'go help modules'
kinesis/sinks/kinesis.go:6:2: no required module provides package github.com/lf-edge/ekuiper/pkg/api: go.mod file not found in current directory or any parent directory; see 'go help modules'
/go # 

I have the following go.mod file:

module kinesis

go 1.22

require (
    github.com/lf-edge/ekuiper v0.0.0-20200323140757-60d00241372b
    github.com/lf-edge/ekuiper/extensions/sinks/kinesis
)

And the kinesis.go file is as follows:

package main

import (
    kinesis "github.com/lf-edge/ekuiper/extensions/sinks/kinesis/ext"
    "github.com/lf-edge/ekuiper/pkg/api"
)

func Kinesis() api.Sink {
}

The error specifically mentions that a go.mod file is missing for these modules, and I cannot proceed with the build.

Could you please help me understand what might be causing this issue and how I can resolve it to build the Kuiper plugin successfully?

@ngjaying
Copy link
Collaborator

@sanjayN4497 Why put the implementation in "github.com/lf-edge/ekuiper/extensions/sinks/kinesis/ext"? You can just implement in your own kinesis project.

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

No branches or pull requests

2 participants