mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Auto-merge for PR #689 via VersionBot
Fix issue where `os download` would always download prod images
This commit is contained in:
commit
93818b1a98
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
||||
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## v6.6.13 - 2017-10-18
|
||||
|
||||
* Fix issue where `os download` would always download prod images #689 [Tim Perry]
|
||||
|
||||
## v6.6.12 - 2017-10-16
|
||||
|
||||
* Update resin-preload to 4.0.2 to support preloading Edison images #687 [Alexis Svinartchouk]
|
||||
|
@ -33,6 +33,9 @@ formatVersion = function(v, isRecommended) {
|
||||
resolveVersion = function(deviceType, version) {
|
||||
var form, resin;
|
||||
if (version !== 'menu') {
|
||||
if (version[0] === 'v') {
|
||||
version = version.slice(1);
|
||||
}
|
||||
return Promise.resolve(version);
|
||||
}
|
||||
form = require('resin-cli-form');
|
||||
|
@ -64,6 +64,13 @@ capitano = require('capitano');
|
||||
|
||||
capitanoExecuteAsync = Promise.promisify(capitano.execute);
|
||||
|
||||
require('resin-sdk').setSharedOptions({
|
||||
apiUrl: settings.get('apiUrl'),
|
||||
imageMakerUrl: settings.get('imageMakerUrl'),
|
||||
dataDirectory: settings.get('dataDirectory'),
|
||||
retries: 2
|
||||
});
|
||||
|
||||
resin = require('resin-sdk-preconfigured');
|
||||
|
||||
actions = require('./actions');
|
||||
|
@ -25,6 +25,8 @@ formatVersion = (v, isRecommended) ->
|
||||
|
||||
resolveVersion = (deviceType, version) ->
|
||||
if version isnt 'menu'
|
||||
if version[0] == 'v'
|
||||
version = version.slice(1)
|
||||
return Promise.resolve(version)
|
||||
|
||||
form = require('resin-cli-form')
|
||||
|
@ -60,7 +60,18 @@ _ = require('lodash')
|
||||
Promise = require('bluebird')
|
||||
capitano = require('capitano')
|
||||
capitanoExecuteAsync = Promise.promisify(capitano.execute)
|
||||
|
||||
# We don't yet use resin-sdk directly everywhere, but we set up shared
|
||||
# options correctly so we can do safely in submodules
|
||||
require('resin-sdk').setSharedOptions(
|
||||
apiUrl: settings.get('apiUrl')
|
||||
imageMakerUrl: settings.get('imageMakerUrl')
|
||||
dataDirectory: settings.get('dataDirectory')
|
||||
retries: 2
|
||||
)
|
||||
# Keep using sdk-preconfigured for now, but only temporarily
|
||||
resin = require('resin-sdk-preconfigured')
|
||||
|
||||
actions = require('./actions')
|
||||
errors = require('./errors')
|
||||
events = require('./events')
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "resin-cli",
|
||||
"version": "6.6.12",
|
||||
"version": "6.6.13",
|
||||
"description": "The official resin.io CLI tool",
|
||||
"main": "./build/actions/index.js",
|
||||
"homepage": "https://github.com/resin-io/resin-cli",
|
||||
@ -85,8 +85,9 @@
|
||||
"resin-docker-build": "^0.4.0",
|
||||
"resin-doodles": "0.0.1",
|
||||
"resin-image-fs": "^2.3.0",
|
||||
"resin-image-manager": "^4.1.1",
|
||||
"resin-image-manager": "^5.0.0",
|
||||
"resin-preload": "^4.0.2",
|
||||
"resin-sdk": "^7.0.0",
|
||||
"resin-sdk-preconfigured": "^6.9.0",
|
||||
"resin-settings-client": "^3.6.1",
|
||||
"resin-stream-logger": "^0.0.4",
|
||||
|
Loading…
x
Reference in New Issue
Block a user