![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/synic/magex
Extension functions and utilities to augment the Go mage build system: https://magefile.org/
ModuleVersion
Pulls the version of a given module from the go.mod
file. This is intended to
be used in pair with MaybeInstallTool
so that the go.mod
file can be the
source of truth for a command line utility. For example, templ
(https://templ.guide) is a module that you import in your code, AND a cli
codegen utility, and then need to be the same version. Example:
func Codegen() error {
version, err := magex.ModuleVersion("github.com/a-h/templ")
if err != nil {
return err
}
path, err := magex.MaybeInstallTool(
"templ", "github.com/a-h/templ/cmd/templ", version,
)
if err != nil {
return err
}
return sh.Run(path, "generate")
}
MaybeInstallTool
Checks to see if a go command line tool is installed, and if it's not, it installs it.
func Dev() error {
path, err := magex.MaybeInstallTool(
"air", "github.com/cosmtrek/air", "v1.49.0",
)
if err != nil {
return err
}
return sh.RunV(path)
}
MaybeInstallToolToDestination
Checks to see if a go command line tool exists at the given location. If not,
it installs it. Useful if you want to install to ./bin
and avoid changing the
host GOPATH
.
func Dev() error {
path, err := magex.MaybeInstallToolToDestination(
"air", "github.com/cosmtrek/air", "v1.49.0", "bin",
)
if err != nil {
return err
}
return sh.RunV(path)
}
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.