Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Vendoring をやめたけどやめたのは正解だったのか

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Vendoring をやめたけどやめたのは正解だったのか

The Go gopher was designed by Renée French.

https://gotalk.connpass.com/event/388086/

Avatar for Kotaro Otaka

Kotaro Otaka

June 17, 2026

More Decks by Kotaro Otaka

Other Decks in Programming

Transcript

  1. #goconnect Go Modules Reference A module is a collection of

    packages that are released, versioned, and distributed together. https://go.dev/ref/mod#modules-overviewより抜粋
  2. #goconnect Go Modules Reference Vendoring may be used to allow

    interoperation with older versions of Go, or to ensure that all files used for a build are stored in a single file tree. https://go.dev/ref/mod#vendoring より抜粋
  3. #goconnect Module Mirror A module mirror is a ..., allowing

    the mirror to continue to serve source code that is no longer available from the original locations. https://go.dev/blog/module-mirror-launch#module-mirror より抜粋
  4. #goconnect Go Module Mirror proxy.golang.org does not save all modules

    forever. There are a number of reasons for this, but one reason is if proxy.golang.org is not able to detect a suitable license. https://proxy.golang.org/ より抜粋
  5. go build vendor/ あり vendor/ なし 差 初回 24.07 s

    27.59 s +3.52 s 2回目以降 1.37 s 1.27 s - #goconnect
  6. docker build vendor/ あり vendor/ なし 差 初回 38.53 s

    41.37 s +2.84 s 2回目以降 11.14 s 11.11 s - #goconnect
  7. #goconnect Go Modules Reference Vendoring may be used to allow

    interoperation with older versions of Go, or to ensure that all files used for a build are stored in a single file tree. https://go.dev/ref/mod#vendoring より抜粋
  8. 2020.04 2021.04 2022.11 Kotaro Otaka おーたかこーたろー / @otakakot Web Engineer

    新卒入社 Hello Golang! Web Engineer @株式会社ビットキー Gopher6年生 #goconnect