mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
windows dev-env: remove wget (#331)
This also removes the manifest-change tests, as the test was testing a wget update.
This commit is contained in:
parent
b373e0d1c0
commit
e9b128ea68
@ -1,5 +1,4 @@
|
||||
while (Test-Path Alias:curl) {Remove-Item Alias:curl}
|
||||
while (Test-Path Alias:wget) {Remove-Item Alias:wget}
|
||||
|
||||
$env:HOME = $env:USERPROFILE
|
||||
$env:LOGONSERVER = 'LOCALHOST'
|
||||
|
@ -1,28 +0,0 @@
|
||||
{
|
||||
"homepage": "https://eternallybored.org/misc/wget/",
|
||||
"license": "GPL-3.0",
|
||||
"version": "1.19.4",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": [
|
||||
"https://eternallybored.org/misc/wget/releases/wget-1.19.4-win64.zip"
|
||||
],
|
||||
"hash": [
|
||||
"3e370410a7818076a5ee30867a9966098dee5de2a94793e574d2531a6c95f5b9"
|
||||
]
|
||||
},
|
||||
"32bit": {
|
||||
"url": [
|
||||
"https://eternallybored.org/misc/wget/releases/wget-1.19.4-win32.zip"
|
||||
],
|
||||
"hash": [
|
||||
"b1a7e4ba4ab7f78e588c1186f2a5d7e1726628a5a66c645e41f8105b7cf5f61c"
|
||||
]
|
||||
}
|
||||
},
|
||||
"bin": "wget.exe",
|
||||
"depends": "cacert",
|
||||
"post_install": [
|
||||
"\"ca_certificate=$(appdir cacert)\\current\\cacert.pem\" | out-file \"$dir\\wget.ini\" -encoding default"
|
||||
]
|
||||
}
|
@ -46,33 +46,18 @@ Describe "DADEW - DA DevEnv Windows" {
|
||||
(jq --version) | Out-String | Should -Match ([regex]::Escape("jq-1.5"))
|
||||
}
|
||||
|
||||
It "provides tools listed in .dadew file - wget" {
|
||||
da_is_installed "wget" | Should -Be False
|
||||
da_is_installed "scoop" | Should -Be False
|
||||
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
dadew "sync" "$PSScriptRoot\envs\wget"
|
||||
da_is_installed "wget" | Should -Be True
|
||||
(wget --version) | Out-String | Should -Match ([regex]::Escape("GNU Wget 1.19.4"))
|
||||
}
|
||||
|
||||
It "syncs provides tools listed in .dadew file ensuring not-listed are uninstalled" {
|
||||
da_is_installed "jq" | Should -Be False
|
||||
da_is_installed "wget" | Should -Be False
|
||||
da_is_installed "scoop" | Should -Be False
|
||||
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
dadew "sync" "$PSScriptRoot\envs\jq"
|
||||
dadew "sync" "$PSScriptRoot\envs\wget"
|
||||
|
||||
da_is_installed "wget" | Should -Be True
|
||||
da_is_installed "jq" | Should -Be False
|
||||
|
||||
dadew "sync" "$PSScriptRoot\envs\jq"
|
||||
|
||||
da_is_installed "wget" | Should -Be False
|
||||
da_is_installed "jq" | Should -Be True
|
||||
}
|
||||
|
||||
@ -160,18 +145,4 @@ Describe "DADEW - DA DevEnv Windows" {
|
||||
dadew "enable"
|
||||
dadew "which" scoop | Should -Be "$env:DADEW\scoop\apps\scoop\current\bin\scoop.ps1"
|
||||
}
|
||||
|
||||
It "reinstall an app on its manifest change" {
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
$out = dadew "sync" "$PSScriptRoot\envs\manifest-change\v1" | Out-String
|
||||
(wget --version) | Out-String | Should -Match ([regex]::Escape("GNU Wget 1.19.3"))
|
||||
|
||||
$out = dadew "sync" "$PSScriptRoot\envs\manifest-change\v2" | Out-String
|
||||
(wget --version) | Out-String | Should -Match ([regex]::Escape("GNU Wget 1.19.2"))
|
||||
|
||||
$out = dadew "sync" "$PSScriptRoot\envs\manifest-change\v1" | Out-String
|
||||
(wget --version) | Out-String | Should -Match ([regex]::Escape("GNU Wget 1.19.3"))
|
||||
}
|
||||
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"manifests": "manifests",
|
||||
"tools": [
|
||||
"wget"
|
||||
]
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
{
|
||||
"homepage": "https://eternallybored.org/misc/wget/",
|
||||
"license": "GPL-3.0",
|
||||
"version": "1.19.3",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": [
|
||||
"https://eternallybored.org/misc/wget/releases/old/wget-1.19.3-win64.zip"
|
||||
],
|
||||
"hash": [
|
||||
"7e666399afd18283770da20e04ae825b218f22eccc49ef9ab6ecba2820029b56"
|
||||
]
|
||||
},
|
||||
"32bit": {
|
||||
"url": [
|
||||
"https://eternallybored.org/misc/wget/releases/old/wget-1.19.3-win32.zip"
|
||||
],
|
||||
"hash": [
|
||||
"d62e351e322948cdb989980d3a8b5fe16249525a77d15c1cf902c5f7317aea24"
|
||||
]
|
||||
}
|
||||
},
|
||||
"bin": "wget.exe"
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"manifests": "manifests",
|
||||
"tools": [
|
||||
"wget"
|
||||
]
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
{
|
||||
"homepage": "https://eternallybored.org/misc/wget/",
|
||||
"license": "GPL-3.0",
|
||||
"version": "1.19.2",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": [
|
||||
"https://eternallybored.org/misc/wget/releases/old/wget-1.19.2-win64.zip"
|
||||
],
|
||||
"hash": [
|
||||
"34d76a8a75315ccacf9fdd6f0d928b663f74d8ff641de3bbc822f704b82e57ad"
|
||||
]
|
||||
},
|
||||
"32bit": {
|
||||
"url": [
|
||||
"https://eternallybored.org/misc/wget/releases/old/wget-1.19.2-win32.zip"
|
||||
],
|
||||
"hash": [
|
||||
"2350a4391c6c3b666b6aaf11842009869fba1deae1dfbf4c005e2dc135c69148"
|
||||
]
|
||||
}
|
||||
},
|
||||
"bin": "wget.exe"
|
||||
}
|
Loading…
Reference in New Issue
Block a user