frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Stop picking my Go version for me

https://blog.howardjohn.info/posts/go-mod-version/
23•ingve•3h ago

Comments

cweagans•1h ago
In other ecosystems, I could see how this could be a problem, but I don’t think I’ve ever had a problem with a Go upgrade.

What’re the actual, practical results of a package pushing you towards a higher go version that you wouldn’t otherwise have adopted right away? Why is this actually important to avoid beyond “don’t tell me what to do”?

skybrian•1h ago
One potential reason is that Go does drop support for older OSes sometimes. For example, Go 1.22 is the newest version that works with older Mac OSes.

https://go.dev/doc/go1.22#darwin

cwbriscoe•1h ago
I always stay up with the latest go releases and if I am touching one of my packages that are set to lower in go.mod, I update it. It is an easy maintenance task to make sure I am keeping up with the latest standard library and tooling changes and improvements.
charcircuit•1h ago
>It is not the version you use to compile your project

But it is the version which they support. Pushing it back to an older version may result in bad behavior even if it does compile.

dherls•1h ago
The author fails to mention any of the negative effects they experience due to this go version selection. They say that the effect is "viral" but don't give any concrete examples of why it's a bad thing to keep your toolchain up to date
PaulKeeble•1h ago
One of the key advantages of Go is its very compatible, you can compile and run early versioned code on the latest compiler without concern and it will just run with less bugs and faster due to all the advancements over time. I don't like being forced to upgrade my tooling until I choose the upgrade but in Go's case its usually trivial.
canpan•1h ago
I am missing this part too. I can't really say ever having a problem upgrading go to the latest version. Now with "go fix", a lot of features are even improved automatically.
squiggleblaz•1h ago
>My package really does depend on the latest patch release!

> Even in the event that your packages code is only correct with a specific patch release, I still think its wrong to put that version in the go directive unless it cannot be compiled with any other version.

I'm not a go user, but this strikes me as an over-reaction. If your code is only correct with a specific patch release, then it really is your business to make that so. If someone downstream wants to use library_method_broadly_correct and not library_method_correct_only_with_latest, then downstream should patch your source to allow them to do something unsupported. That becomes their problem. If this is likely to be a significant problem that will affect many users, then this is a codesmell warning you that you've probably got two libraries which you're just jumbling together into one: the solution isn't to falsely gate a safe function behind a high dependency version, nor to falsely release a function to people who can't use it safely, but to publish each with its own requirements expressly stated.

websap•57m ago
Yeah, sounds like a skill issue.
amiga386•34m ago
How your go.mod should look:

    go 1.24.0

    toolchain go1.25.7
"This module compiles with the language and runtime of go 1.24 and later, but I recommend you use at least go release 1.25.7"

go get can manage this for you - https://go.dev/doc/toolchain#get

abalaji•15m ago
this is great and should be in the blog post
g947o•23m ago
> The version is the minimum version your project can be compiled with.

Sure. But guess what, virtually nobody is going to find out what that "minimum version" is, and your blog post is not going to change that.

Just install the latest toolchain.

South Korea Mandates Solar Panels for Public Parking Lots

https://www.reutersconnect.com/item/south-korea-mandates-solar-panels-for-public-parking-lots/dGF...
174•_____k•2h ago•89 comments

Founder of GitLab battles cancer by founding companies

https://sytse.com/cancer/
712•bob_theslob646•8h ago•169 comments

CSS is DOOMed

https://nielsleenheer.com/articles/2026/css-is-doomed-rendering-doom-in-3d-with-css/
195•msephton•5h ago•50 comments

OpenBSD on Motorola 88000 Processors

http://miod.online.fr/software/openbsd/stories/m88k1.html
45•rbanffy•1d ago•4 comments

Further human + AI + proof assistant work on Knuth's "Claude Cycles" problem

https://twitter.com/BoWang87/status/2037648937453232504
152•mean_mistreater•7h ago•106 comments

Alzheimer's disease mortality among taxi and ambulance drivers (2024)

https://www.bmj.com/content/387/bmj-2024-082194
24•bookofjoe•1h ago•10 comments

AI overly affirms users asking for personal advice

https://news.stanford.edu/stories/2026/03/ai-advice-sycophantic-models-research
529•oldfrenchfries•12h ago•409 comments

Linux is an interpreter

https://astrid.tech/2026/03/28/0/linux-is-an-interpreter/
162•frizlab•9h ago•32 comments

Meta Partners with Arm to Develop New Class of Data Center Silicon

https://about.fb.com/news/2026/03/meta-partners-with-arm-to-develop-new-class-of-data-center-sili...
41•eatonphil•4d ago•6 comments

The first 40 months of the AI era

https://lzon.ca/posts/other/thoughts-ai-era/
113•jpmitchell•7h ago•53 comments

I decompiled the White House's new app

https://thereallo.dev/blog/decompiling-the-white-house-app
378•amarcheschi•10h ago•138 comments

Sealing Paper Packaging Without Adhesives

https://www.fraunhofer.de/en/press/research-news/2026/march-2026/sealing-paper-packaging-without-...
23•gnabgib•3h ago•4 comments

I Built an Open-World Engine for the N64 [video]

https://www.youtube.com/watch?v=lXxmIw9axWw
357•msephton•14h ago•59 comments

Stop picking my Go version for me

https://blog.howardjohn.info/posts/go-mod-version/
23•ingve•3h ago•12 comments

InpharmD (YC W21) Is Hiring – Senior Ruby on Rails Developer

https://inpharmd.com/jobs/senior-ruby-on-rails-engineer
1•tulasichintha•4h ago

Cocoa-Way – Native macOS Wayland compositor for running Linux apps seamlessly

https://github.com/J-x-Z/cocoa-way
301•OJFord•16h ago•94 comments

OpenCiv1 – open-source rewrite of Civ1

https://github.com/rajko-horvat/OpenCiv1
91•caminanteblanco•7h ago•29 comments

Cat Itecture: Better Cat Window Boxes

https://gwern.net/catitecture
8•gggscript•17h ago•1 comments

The 667MHz Machine

https://www.0xsid.com/blog/667mhz-machine
6•ssiddharth•3d ago•0 comments

Undroidwish – a single-file, batteries-included Tcl/Tk binary for many platforms

https://androwish.org/home/wiki?name=undroidwish
67•smartmic•9h ago•3 comments

Spanish legislation as a Git repo

https://github.com/EnriqueLop/legalize-es
694•enriquelop•14h ago•213 comments

Joining databases across teams without copying data or running servers

https://datahike.io/notes/collaborate-without-infrastructure/
19•whilo•2d ago•2 comments

Detecting file changes on macOS with kqueue

https://www.vegardstikbakke.com/kqueue/
65•benhoyt•4d ago•11 comments

My heuristics are wrong. What now?

https://brooker.co.za/blog/2026/03/20/ic-leadership.html
40•herbertl•4d ago•5 comments

Private equity turned vulnerable elderly people into human ATMs

https://www.theguardian.com/society/2026/mar/28/the-great-care-home-cash-grab-how-private-equity-...
107•mordechai9000•4h ago•59 comments

TreeTrek – A raw Git repository viewer web app

https://repo.autonoma.ca/treetrek
8•maxloh•3h ago•2 comments

Improved Git Diffs with Delta, Fzf and a Little Shell Scripting

https://nickjanetakis.com/blog/awesome-git-diffs-with-delta-fzf-and-a-little-shell-scripting
122•nickjj•4d ago•35 comments

Attie.ai

https://attie.ai/login
5•m-hodges•2h ago•0 comments

ICAO issued new power bank restriction on flight

https://www.icao.int/news/new-power-bank-restrictions-will-safeguard-international-aviation
60•phantomathkg•11h ago•92 comments

Hacking old hardware by renaming to .zip [video]

https://www.youtube.com/watch?v=P1kfuCkWo24
103•abadar•3d ago•78 comments