flatpakgo

command
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command flatpakgo prints the Go modules the app, maild and mailctl need as flatpak-builder `file` sources, so a Flatpak builds offline (docs/adr/0046-the-desktop-flatpak-carries-its-own-maild.md).

Each module becomes 2 sources, its go.mod and its zip, fetched from proxy.golang.org into goproxy/<escaped module>/@v. The build then points GOPROXY at file://$PWD/goproxy. The modules are the ones `go mod download` fetches for this module, and each must have both of its go.sum lines. A module that go.mod replaces with a directory (third_party/go-imap) is no download and no source: the build finds it in the source tree. Run it from the repository root; it needs a populated module cache, which `go mod download` fills, so it runs that first and may use the network.

go run ./tools/flatpakgo [-gosum go.sum] > packaging/flatpak/go-sources.json

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL