Skip to content

Unexpected error in the Snap package #2

@aitva

Description

@aitva

Hello,

Thank you for publishing Go tools in the Snap store, I noticed today and tried golangci-lint. But, I get an unexpected error that point to the Snap package. Before opening the ticket, I tried the following configurations:

  • I have installed the package with and without the --classic option
  • I have updated my local installation to match the version from the store
  • I have tried on multiple modules (with and without cgo)
  • I have tried with the Go compiler installed as a Snap package
  • I have tried with the Go compiler installed under /usr/local/go

The error is always there and it is always the same. Here are the commands I used:

$ golangci-lint version
golangci-lint has version 1.49.0 built from cc2d97f3 on 2022-08-24T10:24:37Z
$ golangci-lint run
$ /snap/bin/golangci-lint version
golangci-lint has version 1.49.0 built from cc2d97f3 on 2022-08-24T12:18:21Z
$ /snap/bin/golangci-lint run .
../../../../../snap/golangci-lint/94/src/runtime/cgo/cgo.go:34:8: could not import C (cgo preprocessing failed) (typecheck)
import "C"
       ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions