Skip to content

How to compile the SQL source plugin? #2986

@Maingol

Description

@Maingol

I want to compile the SQL source plugin myself. The reference documentation is:
image

After modifying the source code, I executed the following command in a CentOS 7 virtual machine on Windows:

go build -trimpath --buildmode=plugin -o plugins/sources/Sql.so extensions/sources/sql/*.go

This produced Sql.so, which I placed in the sql directory and then compressed into a sql.zip file. The directory structure is as follows:

.
├── Sql.so
├── ext
│   ├── convert.go
│   ├── sql.go
│   ├── sqlLookup.go
│   └── sql_test.go
├── sql.go
├── sql.json
├── sql.yaml
└── sqlLookup.go

The .zip file uploaded successfully, but the plugin could not be created. The error message is as follows:
image

How to resolve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions