Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngo

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngo - npm Package Compare versions

Comparing version 2.6.2 to 2.7.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ ### Changelog

#### [2.7.0](https://github.com/doesdev/ngo/compare/2.6.2...2.7.0)
> 21 June 2021
- Add `ngo-version` command
- Update dependencies
#### [2.6.2](https://github.com/doesdev/ngo/compare/2.6.1...2.6.2)

@@ -7,0 +14,0 @@

6

cli-update.js
#! /usr/bin/env node
'use strict'
const go = require('./index.js')({ update: true })()
const semver = require('semver')
const maybeVersion = process.argv.slice(2)[0]
const version = semver.valid(maybeVersion) ? maybeVersion : undefined
const go = require('./index.js')({ update: true, env: { version } })()
if (go.stdout && go.stderr) {

@@ -6,0 +10,0 @@ go.stdout.pipe(process.stdout)

2

index.js

@@ -84,3 +84,3 @@ 'use strict'

const gb = require('go-bin')
const versionErr = () => new Error(`No matching version found`)
const versionErr = () => new Error('No matching version found')

@@ -87,0 +87,0 @@ return gv().then((versions) => {

{
"name": "ngo",
"version": "2.6.2",
"version": "2.7.0",
"description": "Run Go commands from Node or CLI, Go env not required",

@@ -24,2 +24,3 @@ "engines": {

"ngo-update": "cli-update.js",
"ngo-version": "cli-update.js",
"ngo-binary": "cli-binary.js"

@@ -48,10 +49,11 @@ },

"dependencies": {
"execa": "^4.0.0",
"execa": "^5.1.1",
"go-bin": "^1.4.0",
"go-versions": "^1.3.2"
"go-versions": "^1.3.2",
"semver": "^7.3.5"
},
"devDependencies": {
"fs-extra": "^9.0.0",
"mvt": "^4.1.0"
"fs-extra": "^10.0.0",
"mvt": "^4.1.1"
}
}

@@ -35,5 +35,9 @@ # ngo [![NPM version](https://badge.fury.io/js/ngo.svg)](https://npmjs.org/package/ngo) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) [![Dependency Status](https://dependencyci.com/github/doesdev/ngo/badge)](https://dependencyci.com/github/doesdev/ngo) [![Build status](https://ci.appveyor.com/api/projects/status/0wutjytsl4hmha1j?svg=true)](https://ci.appveyor.com/project/doesdev/ngo) [![Build Status](https://travis-ci.org/doesdev/ngo.svg)](https://travis-ci.org/doesdev/ngo)

# to set the `ngo` install of Go to a specific version (won't update system version)
$ ngo-version 1.12.0
# go version go1.12.0 windows/amd64
# to run a `go get` installed binary use this bs
$ ngo-binary golint test/fixtures/errors.go
# test\fixtures\errors.go:13:5: error var unexp should have name of the form errFoo
# test\fixtures\errors.go:13:5: error var unexp should have name of the form errFoo
```

@@ -40,0 +44,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc