
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
git-grunt-gobuild
Advanced tools
Compile Go files
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install git-grunt-gobuild --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('git-grunt-gobuild');
This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that you upgrade, but in case you can't please use v0.3.2.
Also check out gorun and gostop for other go/grunt modules.
Run this task with the grunt gobuild
command.
Compile Go programs inline as a Grunt task.
Please note that some tests require you to have bootstrapped the amd64 and i386 architectures. If you have not done so already, do the following:
cd $GOROOT/src
GOARCH=386 ./make.bash # May need to sudo
GOARCH=amd64 ./make.bash # May need to sudo
GOOS=darwin ./make.bash # May need to sudo
GOOS=windows ./make.bash # May need to sudo
Set to your go file with func main().
The destination binary (with binary name included).
The architecture / OS to build for. See the chart here for reference. Leave undefined for the default architecture / OS on your system.
gobuild: {
first: {
src: "main.go",
dest: "binary_one"
},
second: {
src: "some/location/other.go",
dest: "/tmp/binary_two"
}
}
gobuild: {
first: {
src: "main.go",
dest: "my_executable.exe",
goarch: 386,
goos: windows
}
}
Task submitted by Jean de Klerk
This file was generated on Tue Dec 02 2014 14:20:15.
FAQs
Compile Go files
The npm package git-grunt-gobuild receives a total of 0 weekly downloads. As such, git-grunt-gobuild popularity was classified as not popular.
We found that git-grunt-gobuild demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.