golink: fails to build under Golang 1.27

Open Beginner friendly
#587,482 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
build-system

Research direction

Find the golink package definition in Nixpkgs and inspect its source revision and dependency handling. Start by comparing the reported upstream commit with the package’s current version; the build logs identify the vendored Go JSON dependency failures. Update the package to a compatible upstream revision or dependency set, then confirm the package builds under Go 1.27.

Written by the indexing model from the issue text.

Description

0.kind: bug
Nixpkgs version

Unstable (26.11)

Describe the bug
       > Building subPackage .
       > # github.com/go-json-experiment/json
       > vendor/github.com/go-json-experiment/json/alias.go:618:21: undefined: json.SkipFunc
       > vendor/github.com/go-json-experiment/json/alias.go:957:14: undefined: json.DiscardUnknownMembers

I believe the issue is that these were removed in 1.27.

Upstream had to bump dependencies when they changed their Golang version: https://github.com/tailscale/golink/commit/2a5a7c18f5b3ce3e56220d446876e6a386979f40

It may be necessary to roll up the golink version to that revision.

Steps to reproduce

Builds are failing in hydra for all three architectures, for example:

https://hydra.nixos.org/log/51yxcmqs3b5srya09rh9x81gql0nipwq-golink-1.0.0-unstable-2026-07-03.drv
https://hydra.nixos.org/log/c90xcz90dacxpsfc76q6jd7w5vvl77sf-golink-1.0.0-unstable-2026-07-03.drv
https://hydra.nixos.org/log/083yl02kll40cck8z3lisd3ysk8cxg3g-golink-1.0.0-unstable-2026-07-03.drv

Expected behaviour

Things in NixOS should build.

System metadata
  • system: "aarch64-linux"
  • host os: Linux 7.3.1, NixOS, 26.11 (Zokor), 26.11.20261105.f9a75f4
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.34.9
  • channels(root): ""
  • nixpkgs: /nix/store/4rwf9a42lpij7vhpwxjz8nzb3cpkf4zx-source
Notify maintainers

@fab


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs
Is this issue important to you?

Add a 👍 reaction to issues you find important.

Dominant language
Nix
Stars
26.8k
Forks
20.7k
Avg merge
6h 55m
Merged PRs (30d)
535

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NixOS/nixpkgs

All issues in NixOS/nixpkgs

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.