
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
4d63.com/gocheckcompilerdirectives
Check that go compiler directives (//go:
comments) are valid and catch easy
mistakes.
Compiler directives are comments like //go:generate
, //go:embed
,
//go:build
, etc.
Go compiler directives are comments in the form of //go:
that provide an
instruction to the compiler.
The directives are easy to make mistakes with. The linter will detect the following mistakes:
Adding a space in between the comment bars and the first character, e.g. // go:
, will cause the compiler to silently ignore the comment.
Mistyping a directives name, e.g. //go:embod
, will cause the compiler to silently ignore the comment.
go install 4d63.com/gocheckcompilerdirectives@latest
gocheckcompilerdirectives [package]
gocheckcompilerdirectives ./...
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.