mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-03 23:31:20 +00:00 
			
		
		
		
	If KREW_ROOT is set to $persist_dir\.krew, then every time a krew command is run, the following warning appears: WARNING: To be able to run kubectl plugins, you need to add the "%USERPROFILE%\.krew\bin" directory to your PATH environment variable and restart your shell. This commit fixes this by setting it to $dir\.krew instead.
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "0.4.3",
 | 
						|
    "description": "Krew is the package manager for kubectl plugins.",
 | 
						|
    "homepage": "https://krew.sigs.k8s.io/",
 | 
						|
    "license": "Apache-2.0",
 | 
						|
    "notes": [
 | 
						|
        "This application creates symlinks during installation of plugins.",
 | 
						|
        "You can install 'gsudo' to run it as administrator, or enable 'Developer Mode' in Windows 10 Settings to bypass the elevation requirement."
 | 
						|
    ],
 | 
						|
    "architecture": {
 | 
						|
        "64bit": {
 | 
						|
            "url": "https://github.com/kubernetes-sigs/krew/releases/download/v0.4.3/krew.exe",
 | 
						|
            "hash": "317d64ba05d6cfcd153418c62d9251cc18ca05dcf35ddc5162fb00315e9f456c"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "installer": {
 | 
						|
        "script": [
 | 
						|
            "[Environment]::SetEnvironmentVariable('KREW_ROOT', \"$persist_dir\\.krew\", 'Process')",
 | 
						|
            "Invoke-ExternalCommand -Path \"$dir\\krew.exe\" -Args 'install krew' | Out-Null"
 | 
						|
        ]
 | 
						|
    },
 | 
						|
    "env_add_path": ".krew\\bin",
 | 
						|
    "env_set": {
 | 
						|
        "KREW_ROOT": "$dir\\.krew"
 | 
						|
    },
 | 
						|
    "persist": ".krew",
 | 
						|
    "checkver": {
 | 
						|
        "github": "https://github.com/kubernetes-sigs/krew"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "architecture": {
 | 
						|
            "64bit": {
 | 
						|
                "url": "https://github.com/kubernetes-sigs/krew/releases/download/v$version/krew.exe"
 | 
						|
            }
 | 
						|
        },
 | 
						|
        "hash": {
 | 
						|
            "url": "$url.sha256"
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |