Saturn | Hello, I am trying to package a Go application however I ran into an error I've never seen before and can't seem to find anything online
github.com/hrfee/jfa-go/docs: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hrfee/jfa-go/common: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hrfee/jfa-go/ombi: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hrfee/jfa-go/logger: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hrfee/jfa-go/linecache: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hrfee/jfa-go/api: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hrfee/jfa-go/easyproxy: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
To ignore the vendor directory, use -mod=readonly or -mod=mod.
To sync the vendor directory, run:
go mod vendor
That is the error I am getting and here is my current derivation
{
lib,
buildGoModule,
fetchFromGitHub,
pkg-config,
libayatana-appindicator,
go-swag,
}:
buildGoModule rec {
pname = "jfa-go";
version = "0.5.1";
src = fetchFromGitHub {
owner = "hrfee";
repo = "jfa-go";
rev = "v${version}";
hash = "sha256-7F0cPTG3LuZQk5AT5V5UwW9+dX25aGS8RDYi62CGDR8=";
};
vendorHash = "sha256-JC9d/FDG6hadkX1ywJ120BAsVkg/xMt9sUkh/DHModI=";
nativeBuildInputs = [
pkg-config
go-swag
];
buildInputs = [
libayatana-appindicator
];
preBuild = ''
swag init -g main.go -d ${src}/
'';
ldflags = [
"-X=main.version=v${version}"
"-X=main.commit=${src.rev}"
"-X=main.updater=binary"
"-X=main.cssVersion=v3"
"-X=main.builtBy=Nix"
];
meta = {
description = "A bit-of-everything user managament app for Jellyfin";
homepage = "https://github.com/hrfee/jfa-go/tree/main";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [saturn745];
mainProgram = "jfa-go";
};
}
Does anybody have any ideas?
| 04:03:34 |