Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Building the simplest Go static analysis tool

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Filippo Valsorda
Word Count
639
Company Posts That Month
16
Language
English
Hacker News Points
-
Post removed?
No
Summary

Filippo Valsorda introduces "Go native vendoring" (GO15VENDOREXPERIMENT), a method to freeze dependencies by placing them in a vendor folder within a project. The compiler then checks the vendor folder before searching the GOPATH. However, users might forget to vendor certain packages, causing issues when sharing the program with others. To address this, Valsorda developed a simple static analysis tool using Go's simplicity and libraries. The tool loads packages passed as arguments on the command line, including test files based on a flag, and checks if all non-standard library dependencies are vendored. It can be found at https://github.com/FiloSottile/vendorcheck.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.