GitHub документирует проблемы своего собственного UX. Это прекрасно. https://docs.github.com/en/packages/guides/pushing-and-pulling-docker-images#authenticating-to-github-container-registry
Сделал автосборку активных веток разработки Go в Docker образы. Теперь можно гонять тесты на CI с tip/master не пересобирая его каждый раз, да и играться с дженериками и фаззингом проще. https://github.com/AlekSi/golang-tip
GitHub
GitHub - AlekSi/golang-tip: Daily builds of active Go development branches
Daily builds of active Go development branches. Contribute to AlekSi/golang-tip development by creating an account on GitHub.
How to Go wrong
Сделал автосборку активных веток разработки Go в Docker образы. Теперь можно гонять тесты на CI с tip/master не пересобирая его каждый раз, да и играться с дженериками и фаззингом проще. https://github.com/AlekSi/golang-tip
Образ сделан в рамках подготовки к воркшопу “Fuzz против и Property-Based тесты в Go”, который я и Валера Мелешкин из подкаста DevZen проведём на конференции GopherCon Russia уже в конце следующей недели. Сама конференция с крутыми спикерами бесплатна, но воркшопы стоят (надеюсь, небольших) денег. Регистрация ещё открыта, но долго не тяните.
www.gophercon-russia.ru
GopherCon Russia 2021
Конференция разработчиков на Go, 23-25 апреля 2021 года, Online.
Forwarded from oleg_log (Oleg Kovalov)
We want to provide a low-noise, reliable way for Go developers to be alerted of known security vulnerabilities that affect their applications.
We aim to build a first-party, curated, consistent database of security vulnerabilities open to community submissions, and static analysis tooling to surface only the vulnerabilities that are likely to affect an application, minimizing false positives.
The primary consumer of the database and the protocol will be a Go tool, tentatively
https://github.com/golang/go/issues/45519
https://go.googlesource.com/proposal/+/master/design/draft-vulndb.md
We aim to build a first-party, curated, consistent database of security vulnerabilities open to community submissions, and static analysis tooling to surface only the vulnerabilities that are likely to affect an application, minimizing false positives.
The primary consumer of the database and the protocol will be a Go tool, tentatively
go audit
, which will analyze a module and report what vulnerabilities it’s affected by.https://github.com/golang/go/issues/45519
https://go.googlesource.com/proposal/+/master/design/draft-vulndb.md
GitHub
x/vulndb: new repository · Issue #45519 · golang/go
Per https://golang.org/design/draft-vulndb, I am creating golang.org/x/vulndb following the instructions at https://golang.org/wiki/CreatingSubRepository. This repository will host the Go Vulnerabi...
https://github.com/AlekSi/pointer скоро будет не нужен: https://github.com/golang/go/issues/45624
GopherCon Russia 2021 стартует уже через полчаса, и бесплатная регистрация ещё открыта! Все на https://www.gophercon-russia.ru !
А ещё там можно купить билет на крутейшие воркшопы в субботу и воскресенье. Булат Замалутдинов и Николай Маржан расскажут как писать Kubernetes-операторы, чтобы всё работало и не ломалось; Искандер Шарипов расскажет как крафтить линтеры, чтобы самим всё не сломать; а Валерий Мелешкин и я расскажем как применять property-based тесты и фаззинг, чтобы самим ломать свой код до production. Места ещё есть!
А ещё там можно купить билет на крутейшие воркшопы в субботу и воскресенье. Булат Замалутдинов и Николай Маржан расскажут как писать Kubernetes-операторы, чтобы всё работало и не ломалось; Искандер Шарипов расскажет как крафтить линтеры, чтобы самим всё не сломать; а Валерий Мелешкин и я расскажем как применять property-based тесты и фаззинг, чтобы самим ломать свой код до production. Места ещё есть!
www.gophercon-russia.ru
GopherCon Russia 2021
Конференция разработчиков на Go, 23-25 апреля 2021 года, Online.
This media is not supported in your browser
VIEW IN TELEGRAM
Опубликовано закулисное видео первого дня GopherCon Russia 2021
Go modules strike again: https://github.com/WireGuard/wgctrl-go/issues/102
GitHub
go.mod is requiring a revoked wireguard version · Issue #102 · WireGuard/wgctrl-go
wgctrl-go/go.mod Line 12 in bd2cb78 golang.zx2c4.com/wireguard v0.0.20200121 is requiring golang.zx2c4.com/wireguard v0.0.20200121 but it seems like there's no such version? go: warning: go...
rsc прыгнул на
pkg/
: https://github.com/golang-standards/project-layout/issues/117GitHub
this is not a standard Go project layout · Issue #117 · golang-standards/project-layout
The README makes clear that this is not official, but even the claim "it is a set of common historical and emerging project layout patterns in the Go ecosystem" is not accurate. For examp...
Исключения в Go (NSFW): https://play.golang.org/p/LXroobH8SM
via https://www.reddit.com/r/golang/comments/n1q948/so_you_want_to_use_trycatch/
via https://www.reddit.com/r/golang/comments/n1q948/so_you_want_to_use_trycatch/
Reddit
reddit.com: over 18?
Reddit gives you the best of the internet in one place. Get a constantly updating feed of breaking news, fun stories, pics, memes, and videos just for you. Passionate about something niche? Reddit has thousands of vibrant communities with people that share…
https://github.com/golang/go/issues/45955
https://github.com/golang/go/wiki/SliceTricks скоро будет не нужен 🎉
https://github.com/golang/go/wiki/SliceTricks скоро будет не нужен 🎉
GitHub
slices: new package to provide generic slice functions · Issue #45955 · golang/go
Note: Discussion is now at #47203. This proposal is for use with #43651. We propose defining a new package, slices, that will provide functions that may be used with slices of any type. If this pro...
Чем я занимаюсь на работе (вернее, пока ещё только пытаюсь): https://thenewstack.io/shell-less-kubernetes-talos-systems-introduces-the-common-operating-system-interface/
The New Stack
Shell-less Kubernetes: Talos Systems Introduces the Common Operating System Interface
Its opinionated container-specific operating system (CSOS), Talos OS, is driven entirely by application programming interfaces (API)s. And, now Talos wants to standardize what an API-driven OS should like under the new Common Operating System Interface (COSI)…
Давно хотел такого: https://github.com/golang/go/issues/46273
GitHub
proposal: context: add WithCancelReason · Issue #46273 · golang/go
Would you consider yourself a novice, intermediate, or experienced Go programmer? I'd say experienced What other languages do you have experience with? C++, Javascript, Python, PHP Would th...
sync.Mutex.TryLock
всё-таки будет: https://github.com/golang/go/issues/45435#issuecomment-853265255Очень надеюсь, что сообщество воспримет этот метод как в своё время восприняли type alias’ы – специализированное средство для специализированных случаев, и не будет использовать его где попало. Лично мне, за много лет использования Go, ни разу
TryLock
не понадобился – всегда дизайн с каналами и select
был легче для понимания.GitHub
sync: add Mutex.TryLock · Issue #45435 · golang/go
What version of Go are you using (go version)? $ go version go version go1.16.3 darwin/amd64 Does this issue reproduce with the latest release? Yes What operating system and processor architecture ...
Forwarded from oleg_log (Oleg Kovalov)
1.16.5 и 1.15.13 вышли, math/big, net/http/httputil & archive/zip пофиксили. Прям как-то много даже, не помню таких объемных патч версий за последнее время.
https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI/m/r_EP-NlKBgAJ
https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI/m/r_EP-NlKBgAJ
Встроенная поддержка fuzzing’а в Go вышла в бету, но, к сожалению, не войдёт в Go 1.17. Эх. https://blog.golang.org/fuzz-beta
Если вы включаете fuzzing в свой CI (а вы должны), то можно сэкономить немного времени пользуясь уже собранной веткой
Если вы включаете fuzzing в свой CI (а вы должны), то можно сэкономить немного времени пользуясь уже собранной веткой
dev.fuzz
: https://github.com/AlekSi/golang-tipgo.dev
Fuzzing is Beta Ready - The Go Programming Language
Native Go fuzzing is now ready for beta testing on tip.
Новый компилятор protobuf’а, духовный наследник gogoprotobuf: https://vitess.io/blog/2021-06-03-a-new-protobuf-generator-for-go/
Vitess
Vitess | A new Protocol Buffers generator for Go
Go на голом ARM железе, без ядра Linux: https://github.com/golang/go/issues/46802
GitHub
proposal: all: add bare metal ARM support · Issue #46802 · golang/go
Hello, I'd like to request reconsideration of our previous proposal (declined) as there have been new simplifications in our patch that should solve some, if not all, concerns previously ra...
Go 1.17 is deprecating the traditional use of
На мой взгляд – хорошее изменение. Разное поведение
go get
: https://utcc.utoronto.ca/~cks/space/blog/programming/GoAndDeprecatingGoGetНа мой взгляд – хорошее изменение. Разное поведение
go get
внутри проекта с модулями и вне его было очень странным. Но да, старые инструкции нужно обновить.