Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite #15

Merged
merged 49 commits into from
Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
2f8af60
Support for multiple Chocolatey sources
ethanbergstrom Jun 18, 2018
a27eb15
Fix initial use of choco as source manager in a DSC scenario
ethanbergstrom Jun 22, 2018
d3e2689
Remove approval check for alternative (pure NuGet) repos
ethanbergstrom Jun 23, 2018
9b396a1
Better test for base alternative source
ethanbergstrom Jun 23, 2018
c3041f8
Remove duplicate string in dot-org approval check
ethanbergstrom Jun 23, 2018
db57338
Update documentation to reflect mutli-source funtionality
ethanbergstrom Jun 23, 2018
cdbac85
Fix handling FPR from DSC and better error Choco error handling
ethanbergstrom Jun 25, 2018
51e0748
FIlter out install arguments when searching
ethanbergstrom Nov 2, 2018
5d39c8c
Propogate errors up when called from DSC
ethanbergstrom Nov 2, 2018
5956f01
Speed up long installs with embedded installers
ethanbergstrom Nov 2, 2018
872b70e
A few quality-of-life changes
ethanbergstrom Nov 2, 2018
10add07
Additional tests for new multi-source and parameter logic
ethanbergstrom Nov 2, 2018
4bb6ec2
PR-10 Update version number
ethanbergstrom Feb 3, 2019
fbb6705
Add missing error string
ethanbergstrom Sep 28, 2019
33af7f9
Refactor w/ source mgmt, DSC and 'latest' support
ethanbergstrom Nov 16, 2019
35decf0
Error propogation and returning source from search
ethanbergstrom Nov 17, 2019
cf1edaf
Clean up errant global vars
ethanbergstrom Nov 17, 2019
c86b12a
Remove unnecessary throw arguments
ethanbergstrom Nov 17, 2019
0b046bb
Use ThrowError consistently to propogate errors
ethanbergstrom Nov 17, 2019
c14d610
Whitespace cleanup
ethanbergstrom Nov 17, 2019
e2d178c
Additional whitespace
ethanbergstrom Nov 17, 2019
6dd9a5a
Removal of Choco updates deprecates Compare-SemVer
ethanbergstrom Nov 17, 2019
2df1aed
Inspect Un/Install output for expected results
ethanbergstrom Nov 17, 2019
b87c185
Documentation and tightening up logic
ethanbergstrom Nov 17, 2019
9de3d7c
Remove unnecessary variables
ethanbergstrom Nov 17, 2019
f3d21d4
Fix test - strange output from choco with all versions of nodejs
ethanbergstrom Jan 2, 2020
e510cf4
Merge pull request #1 from ethanbergstrom/rewrite
ethanbergstrom Jan 19, 2020
5cc8913
Automatically update PackageManagement
ethanbergstrom Feb 8, 2020
93b0ec1
Install choco on -Force w/ TLS 1.2
ethanbergstrom Feb 8, 2020
1991f66
Formatting cleanup
ethanbergstrom Feb 8, 2020
a0e4e18
Merge pull request #2 from ethanbergstrom/master
ethanbergstrom Feb 8, 2020
ea44ff6
Update readme describing 'latest' feature
ethanbergstrom Feb 9, 2020
6abd674
Merge pull request #3 from ethanbergstrom/master
ethanbergstrom Feb 9, 2020
5da5d97
Support AcceptLicense flag
ethanbergstrom Feb 23, 2020
ed15b19
Fix typo in readme
ethanbergstrom Feb 23, 2020
d0e64b9
Fix license file to be detected by GitHub
ethanbergstrom Feb 29, 2020
2cbc75b
Spruce up readme
ethanbergstrom Feb 29, 2020
41132a4
Merge pull request #4 from ethanbergstrom/master
ethanbergstrom Feb 29, 2020
279e848
Remove necessary line from readme
ethanbergstrom Feb 29, 2020
53935b1
Merge pull request #5 from ethanbergstrom/master
ethanbergstrom Feb 29, 2020
f268a9a
PowerShell 7 support
ethanbergstrom May 17, 2020
3a9ba70
Native API support
ethanbergstrom May 17, 2020
594063e
Forgot to include dotnet tools file
ethanbergstrom May 17, 2020
216b6cb
Fix appveyor project name
ethanbergstrom May 17, 2020
3f6b5b2
Clean up artifact contents
ethanbergstrom May 17, 2020
d1f4a48
Prevent Choco.exe from contaminating the pipeline
ethanbergstrom May 17, 2020
0980f6f
Second correction for initial Choco install
ethanbergstrom May 17, 2020
8271c57
Tighten up syntax in readme and tests
ethanbergstrom May 17, 2020
4cb3b1f
Enable Native API by default under PS 5.1
ethanbergstrom May 30, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"paket": {
"version": "5.245.1",
"commands": [
"paket"
]
}
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*TestsResults.xml
*.dll
.paket/*
packages/*
Binary file modified ChocolateyGet.Resource.psd1
Binary file not shown.
60 changes: 33 additions & 27 deletions ChocolateyGet.psd1
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
@{
RootModule = 'ChocolateyGet.psm1'
ModuleVersion = '1.1.0.0'
GUID = 'c1735ed7-8b2f-426a-8cbc-b7feb6b8288d'
Author = 'Jianyun'
Copyright = ''
Description = 'Package Management (OneGet) provider that facilitates installing Chocolatey packages from any NuGet repository.'
# Refuse to load in CoreCLR if PowerShell below 7.0.1 due to regressions with how 7.0 loads PackageManagement DLLs
# https://github.com/PowerShell/PowerShell/pull/12203
PowerShellVersion = if ($PSEdition -eq 'Core') {
'7.0.1'
} else {
'3.0'
}
RequiredModules = @(
@{
ModuleName='PackageManagement';
ModuleVersion='1.1.7.2'
}
)
PrivateData = @{
PackageManagementProviders = 'ChocolateyGet.psm1'
PSData = @{
# Tags applied to this module to indicate this is a PackageManagement Provider.
Tags = @('PackageManagement','Provider','Chocolatey','PSEdition_Desktop','PSEdition_Core','Windows')

RootModule = 'ChocolateyGet.psm1'
ModuleVersion = '1.0.0'
GUID = 'c1735ed7-8b2f-426a-8cbc-b7feb6b8288d'
Author = 'Jianyun'
Copyright = ''
Description = 'An PowerShell OneGet provider that discovers packages from https://www.chocolatey.org.'
PowerShellVersion = '3.0'
FunctionsToExport = @('Compare-SemVer')
RequiredModules = @('PackageManagement')
PrivateData = @{"PackageManagementProviders" = 'ChocolateyGet.psm1'
# A URL to the license for this module.
LicenseUri = 'https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt'

PSData = @{
# A URL to the main website for this project.
ProjectUri = 'https://github.com/Jianyunt/ChocolateyGet'

# Tags applied to this module to indicate this is a PackageManagement Provider.
Tags = @("PackageManagement","Provider")

# A URL to the license for this module.
LicenseUri = 'https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt'

# A URL to the main website for this project.
ProjectUri = 'https://github.com/Jianyunt/ChocolateyGet'

# ReleaseNotes of this module
ReleaseNotes = 'This is a PowerShell OneGet provider. It is a wrapper on top of Choco.
It discovers packages from https://www.chocolatey.org.
'
} # End of PSData
}
# ReleaseNotes of this module
ReleaseNotes = 'This is a PowerShell OneGet provider. It is a wrapper on top of Choco.
It discovers Chocolatey packages from https://www.chocolatey.org and other NuGet repos.'
}
}
}

Loading