Uninstall the default profile on Windows
This commit is contained in:
		@@ -1,9 +1,10 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
			
		||||
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
			
		||||
    return new (P || (P = Promise))(function (resolve, reject) {
 | 
			
		||||
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 | 
			
		||||
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
 | 
			
		||||
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
 | 
			
		||||
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
 | 
			
		||||
        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,10 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
			
		||||
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
			
		||||
    return new (P || (P = Promise))(function (resolve, reject) {
 | 
			
		||||
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 | 
			
		||||
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
 | 
			
		||||
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
 | 
			
		||||
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
 | 
			
		||||
        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
@@ -35,6 +36,9 @@ function install() {
 | 
			
		||||
            // to leverage newer features like "latest latest compatible nightly"
 | 
			
		||||
            yield exec.exec('rustup', ['self', 'update']);
 | 
			
		||||
            yield exec.exec('rustup', ['set', 'profile', 'minimal']);
 | 
			
		||||
            // Github's default Windows install comes with rustup pre-installed with stable, including
 | 
			
		||||
            // rust-docs. This removes the default stable install so that it doesn't update rust-docs.
 | 
			
		||||
            yield exec.exec('rustup', ['toolchain', 'uninstall', 'stable']);
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								node_modules/.bin/uuid
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								node_modules/.bin/uuid
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1 +1 @@
 | 
			
		||||
../uuid/bin/uuid
 | 
			
		||||
../uuid/bin/uuid
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								node_modules/.bin/which
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								node_modules/.bin/which
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1 +1 @@
 | 
			
		||||
../which/bin/which
 | 
			
		||||
../which/bin/which
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,9 @@ export async function install() {
 | 
			
		||||
    await exec.exec('rustup', ['self', 'update']);
 | 
			
		||||
 | 
			
		||||
    await exec.exec('rustup', ['set', 'profile', 'minimal']);
 | 
			
		||||
    // Github's default Windows install comes with rustup pre-installed with stable, including
 | 
			
		||||
    // rust-docs. This removes the default stable install so that it doesn't update rust-docs.
 | 
			
		||||
    await exec.exec('rustup', ['toolchain', 'uninstall', 'stable']);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user