mirror of
				https://github.com/actions/setup-go.git
				synced 2025-11-04 01:06:24 +00:00 
			
		
		
		
	Fix condition for old go versions
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -2122,7 +2122,7 @@ function addBinToPath() {
 | 
			
		||||
            return added;
 | 
			
		||||
        }
 | 
			
		||||
        let buf = child_process_1.default.execSync('go env GOPATH');
 | 
			
		||||
        if (buf) {
 | 
			
		||||
        if (buf.length > 1) {
 | 
			
		||||
            let gp = buf.toString().trim();
 | 
			
		||||
            core.debug(`go env GOPATH :${gp}:`);
 | 
			
		||||
            if (!fs_1.default.existsSync(gp)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user