Skip to content

Commit

Permalink
Update devops-resource-kit binaries & fix devops-resource-kit issue #…
Browse files Browse the repository at this point in the history
…510 (#233)

* update apimtemplate.dll + fix resource kit #510

* revert package-lock

* fix pipeline for macOS python

* specific version of python for win and macos

Co-authored-by: Dmitrii Korolev <[email protected]>
  • Loading branch information
DeagleGross and DeagleGross authored Feb 11, 2022
1 parent bf3e44c commit e246072
Show file tree
Hide file tree
Showing 13 changed files with 156 additions and 16 deletions.
11 changes: 9 additions & 2 deletions .azure-pipelines/common/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ steps:
condition: eq(variables['Agent.OS'], 'Linux')

- task: UsePythonVersion@0
displayName: 'Use Python 3.6.x'
condition: in(variables['agent.os'], 'Windows_NT')
displayName: 'Use Python on Windows' # specific version for Windows: https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
inputs:
versionSpec: 3.6.x
versionSpec: 3.9.9

- task: UsePythonVersion@0
condition: in(variables['agent.os'], 'Darwin', 'Linux')
displayName: 'Use Python 3.9.10' # specific version for macOS: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
inputs:
versionSpec: 3.9.10

- task: Npm@1
displayName: 'Test'
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added resources/devops/Microsoft.Extensions.Options.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
148 changes: 140 additions & 8 deletions resources/devops/apimtemplate.deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"Microsoft.Azure.Management.ApiManagement": "4.0.6-preview",
"Microsoft.Azure.Management.Authorization": "2.9.0-preview",
"Microsoft.Azure.Management.Fluent": "1.18.0",
"Microsoft.Extensions.Caching.Memory": "3.1.1",
"Newtonsoft.Json": "12.0.1",
"System.Diagnostics.Process": "4.3.0",
"YamlDotNet": "5.3.0"
Expand All @@ -31,7 +32,7 @@
},
"McMaster.Extensions.CommandLineUtils/2.2.5": {
"dependencies": {
"System.ComponentModel.Annotations": "4.4.1"
"System.ComponentModel.Annotations": "4.7.0"
},
"runtime": {
"lib/netstandard2.0/McMaster.Extensions.CommandLineUtils.dll": {
Expand Down Expand Up @@ -572,6 +573,72 @@
}
}
},
"Microsoft.Extensions.Caching.Abstractions/3.1.1": {
"dependencies": {
"Microsoft.Extensions.Primitives": "3.1.1"
},
"runtime": {
"lib/netstandard2.0/Microsoft.Extensions.Caching.Abstractions.dll": {
"assemblyVersion": "3.1.1.0",
"fileVersion": "3.100.119.61404"
}
}
},
"Microsoft.Extensions.Caching.Memory/3.1.1": {
"dependencies": {
"Microsoft.Extensions.Caching.Abstractions": "3.1.1",
"Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.1",
"Microsoft.Extensions.Logging.Abstractions": "3.1.1",
"Microsoft.Extensions.Options": "3.1.1"
},
"runtime": {
"lib/netstandard2.0/Microsoft.Extensions.Caching.Memory.dll": {
"assemblyVersion": "3.1.1.0",
"fileVersion": "3.100.119.61404"
}
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions/3.1.1": {
"runtime": {
"lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
"assemblyVersion": "3.1.1.0",
"fileVersion": "3.100.119.61404"
}
}
},
"Microsoft.Extensions.Logging.Abstractions/3.1.1": {
"runtime": {
"lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"assemblyVersion": "3.1.1.0",
"fileVersion": "3.100.119.61404"
}
}
},
"Microsoft.Extensions.Options/3.1.1": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.1",
"Microsoft.Extensions.Primitives": "3.1.1",
"System.ComponentModel.Annotations": "4.7.0"
},
"runtime": {
"lib/netstandard2.0/Microsoft.Extensions.Options.dll": {
"assemblyVersion": "3.1.1.0",
"fileVersion": "3.100.119.61404"
}
}
},
"Microsoft.Extensions.Primitives/3.1.1": {
"dependencies": {
"System.Memory": "4.5.2",
"System.Runtime.CompilerServices.Unsafe": "4.7.0"
},
"runtime": {
"lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {
"assemblyVersion": "3.1.1.0",
"fileVersion": "3.100.119.61404"
}
}
},
"Microsoft.IdentityModel.Clients.ActiveDirectory/3.14.0": {
"dependencies": {
"System.Runtime.Serialization.Json": "4.0.2",
Expand Down Expand Up @@ -739,7 +806,7 @@
"System.Threading.Tasks": "4.3.0"
}
},
"System.ComponentModel.Annotations/4.4.1": {},
"System.ComponentModel.Annotations/4.7.0": {},
"System.Diagnostics.Debug/4.3.0": {
"dependencies": {
"System.Runtime": "4.3.0"
Expand Down Expand Up @@ -839,6 +906,7 @@
"System.Runtime.Extensions": "4.3.0"
}
},
"System.Memory/4.5.2": {},
"System.Net.Http/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
Expand Down Expand Up @@ -992,6 +1060,14 @@
}
},
"System.Runtime/4.3.0": {},
"System.Runtime.CompilerServices.Unsafe/4.7.0": {
"runtime": {
"lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll": {
"assemblyVersion": "4.0.6.0",
"fileVersion": "4.700.19.56404"
}
}
},
"System.Runtime.Extensions/4.3.0": {
"dependencies": {
"System.Runtime": "4.3.0"
Expand Down Expand Up @@ -1596,6 +1672,48 @@
"path": "microsoft.data.odata/5.8.2",
"hashPath": "microsoft.data.odata.5.8.2.nupkg.sha512"
},
"Microsoft.Extensions.Caching.Abstractions/3.1.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-lG9qfc7Sx8KsYSmqeEV0WleGTUrzMhNuBdmkwLCOfN/IQRb3ZorullTeoaTNIgYuYM+HQsnKa0N22Lv2BpGG/Q==",
"path": "microsoft.extensions.caching.abstractions/3.1.1",
"hashPath": "microsoft.extensions.caching.abstractions.3.1.1.nupkg.sha512"
},
"Microsoft.Extensions.Caching.Memory/3.1.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-eXKFU6dmz+0EzhlGkVnIJsG8yUIMgSdWRqSN2zLO5IhATJu4JWgUU5vYuRO/HYMCwq8aodK6lVWN7itQXwonkQ==",
"path": "microsoft.extensions.caching.memory/3.1.1",
"hashPath": "microsoft.extensions.caching.memory.3.1.1.nupkg.sha512"
},
"Microsoft.Extensions.DependencyInjection.Abstractions/3.1.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-uKZr5b4w9nQE6UAXS4PqBFbg2qe6kS+pdsCbDG2kHjUaWT/B7EOcDraoR52H/4BoBIEH3By5co6Wioru7+v9Zg==",
"path": "microsoft.extensions.dependencyinjection.abstractions/3.1.1",
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.3.1.1.nupkg.sha512"
},
"Microsoft.Extensions.Logging.Abstractions/3.1.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-4/1BLjd9Zvc87xlhfkIsAlHOgMnGJBQFIEmO3CUKLrf38nIFp3W7X+JoFiRmn20WAi5+l2sgUWS4ixaIuB3S0g==",
"path": "microsoft.extensions.logging.abstractions/3.1.1",
"hashPath": "microsoft.extensions.logging.abstractions.3.1.1.nupkg.sha512"
},
"Microsoft.Extensions.Options/3.1.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-p2faCNhzXyG5oLLOV8n8dwg2rfqS4aRpIWu4qgwZMq+al3133mAQ+Hb822iwRoj3qnKM8zY4A6Jz/Vm/xWHvrA==",
"path": "microsoft.extensions.options/3.1.1",
"hashPath": "microsoft.extensions.options.3.1.1.nupkg.sha512"
},
"Microsoft.Extensions.Primitives/3.1.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-tC5Eo5DbJA+NgiIw26R5c97N02tFvtfqstUxqb/4qXPLXI2IAIWSMUkh/1c9Gw59TT9hNkLwlmLErSPlHgyJVQ==",
"path": "microsoft.extensions.primitives/3.1.1",
"hashPath": "microsoft.extensions.primitives.3.1.1.nupkg.sha512"
},
"Microsoft.IdentityModel.Clients.ActiveDirectory/3.14.0": {
"type": "package",
"serviceable": true,
Expand Down Expand Up @@ -1739,7 +1857,7 @@
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-T5NvFgmHX0WH4c7lP72krsnk+IJI10vJf2j2twGE+5QBRA4RyRAgD+ZjEgdmpLOjW4B+nZGaadewTCUcR899OQ==",
"sha512": "sha512-nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==",
"path": "runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
Expand Down Expand Up @@ -1778,12 +1896,12 @@
"path": "system.collections.concurrent/4.3.0",
"hashPath": "system.collections.concurrent.4.3.0.nupkg.sha512"
},
"System.ComponentModel.Annotations/4.4.1": {
"System.ComponentModel.Annotations/4.7.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ToiYqSCioqhtspq2O/jYKtyTC/T0uwWHBTYlzCi6PRbSSHArN1IaRWeHffDamvms5sye5FDUWCfNZgubQpNRsA==",
"path": "system.componentmodel.annotations/4.4.1",
"hashPath": "system.componentmodel.annotations.4.4.1.nupkg.sha512"
"sha512": "sha512-0YFqjhp/mYkDGpU0Ye1GjE53HMp9UVfGN7seGpAMttAC0C40v5gw598jCgpbBLMmCo0E5YRLBv5Z2doypO49ZQ==",
"path": "system.componentmodel.annotations/4.7.0",
"hashPath": "system.componentmodel.annotations.4.7.0.nupkg.sha512"
},
"System.Diagnostics.Debug/4.3.0": {
"type": "package",
Expand Down Expand Up @@ -1869,6 +1987,13 @@
"path": "system.linq/4.3.0",
"hashPath": "system.linq.4.3.0.nupkg.sha512"
},
"System.Memory/4.5.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-fvq1GNmUFwbKv+aLVYYdgu/+gc8Nu9oFujOxIjPrsf+meis9JBzTPDL6aP/eeGOz9yPj6rRLUbOjKMpsMEWpNg==",
"path": "system.memory/4.5.2",
"hashPath": "system.memory.4.5.2.nupkg.sha512"
},
"System.Net.Http/4.3.0": {
"type": "package",
"serviceable": true,
Expand Down Expand Up @@ -1967,6 +2092,13 @@
"path": "system.runtime/4.3.0",
"hashPath": "system.runtime.4.3.0.nupkg.sha512"
},
"System.Runtime.CompilerServices.Unsafe/4.7.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-IpU1lcHz8/09yDr9N+Juc7SCgNUz+RohkCQI+KsWKR67XxpFr8Z6c8t1iENCXZuRuNCc4HBwme/MDHNVCwyAKg==",
"path": "system.runtime.compilerservices.unsafe/4.7.0",
"hashPath": "system.runtime.compilerservices.unsafe.4.7.0.nupkg.sha512"
},
"System.Runtime.Extensions/4.3.0": {
"type": "package",
"serviceable": true,
Expand Down Expand Up @@ -2152,7 +2284,7 @@
"System.Threading.ThreadPool/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-SrCOmTvvOOCmJT4BBxdZcwhz6XEMsjBGZvGSVorOxdCznaUNeVotEjDfXGIZ8gcGo00qgPbTV6puHDgcFYl6Iw==",
"sha512": "sha512-k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==",
"path": "system.threading.threadpool/4.3.0",
"hashPath": "system.threading.threadpool.4.3.0.nupkg.sha512"
},
Expand Down
Binary file modified resources/devops/apimtemplate.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/devops/apimtemplate.runtimeconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "2.1.0"
},
"configProperties": {
"System.Globalization.Invariant": true
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
}
9 changes: 5 additions & 4 deletions src/commands/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,14 @@ async function askFolder(): Promise<Uri[]> {
function generateExtractConfig(sourceApimName: string, resourceGroup: string, fileFolder: string, apiName?: string): string {
const extractorConfig = {
sourceApimName: sourceApimName,
destinationApimName: "",
destinationApimName: " ",
resourceGroup: resourceGroup,
fileFolder: fileFolder,
apiName: apiName,
linkedTemplatesBaseUrl: "",
linkedTemplatesUrlQueryString: "",
policyXMLBaseUrl: ""
linkedTemplatesBaseUrl: " ",
linkedTemplatesUrlQueryString: " ",
policyXMLBaseUrl: " ",
policyXMLSasToken: " "
};

return JSON.stringify(extractorConfig);
Expand Down

0 comments on commit e246072

Please sign in to comment.