Skip to content

Support for Go modules? #285

@yktoo

Description

@yktoo

flatpak-builder version

1.2.2

Linux distribution and version

Ubuntu 22.04

Affected flatpak-builder tool

go-get/flatpak-go-vendor-generator.py

flatpak-builder tool cli args

No response

Source repository URL

https://github.com/yktoo/ymuse

Flatpak-builder manifest URL

flathub/flathub#3226

Description

This tool (or its README) doesn't seem to support Go modules. I'm trying to follow the README given this manifest:

[skipped]
modules:
  - name: ymuse
    buildsystem: simple
    build-options:
      append-path: /usr/lib/sdk/golang/bin
      env:
        GOBIN: /app/bin
        GOPATH: /run/build/ymuse
      build-args:
        - --share=network
    build-commands:
      - go get ./...
      - go generate
      - go build -ldflags "-s -w -X main.version=$(git describe --always --tags) -X main.commit=$(git rev-parse HEAD) -X main.date=$(git log -1 --format=%cd --date=iso-strict)"
      # [...skipped...]
    sources:
      - type: git
        url: https://github.com/yktoo/ymuse
        tag: v0.20

When trying to build it I get:

Running: go get ./...
$GOPATH/go.mod exists but should not
Error: module ymuse: Child process exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions