mkevenaar / chocolatey-packages

My chocolatey packages
https://mkevenaar.github.io/chocolatey-packages/
Apache License 2.0
42 stars 66 forks source link

(mysql) Fix automatic MySQL update in `update.ps1` #214

Open lauxjpn opened 9 months ago

lauxjpn commented 9 months ago

Description

Motivation and Context

How Has this Been Tested?

I ran the update script locally:

PS C:\Repositories\chocolatey-packages\automatic\mysql> .\update.ps1
mysql - checking updates using au version 2022.10.24

URL check
  https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-8.0.34-winx64.zip
nuspec version: 8.0.31
remote version: 8.0.34
New version is available
Automatic checksum started
Adding 'C:\tools\mysql\current\bin' to the path and the current shell path
PATH environment variable does not have C:\tools\mysql\current\bin in it. Adding...
Using system proxy server ''.
Downloading chocolatey\mysql 64 bit
  from 'https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-8.0.34-winx64.zip'
Using system proxy server ''.

Download of mysql-8.0.34-winx64.zip (231,68 MB) completed.
Package downloaded and hash calculated for 64 bit version
Setting package description from README.md
Updating files
  $Latest data:
    Checksum64                (String)     d0480039bceef97a558027bfb868b77be1717ec1097410c697db383315243895
    ChecksumType64            (String)     sha256
    FileType                  (String)     zip
    NuspecVersion             (String)     8.0.31
    PackageName               (String)     mysql
    URL64                     (String)     https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-8.0.34-winx64.zip
    Version                   (String)     8.0.34
  mysql.nuspec
    setting id: mysql
    updating version: 8.0.31 -> 8.0.34
  tools\chocolateyInstall.ps1
    (^[$]checksumType\s*=\s*)('.*')     = $1'sha256'
    (^[$]url\s*=\s*)('.*')              = $1'https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-8.0.34-winx64.zip'
    (^[$]checksum\s*=\s*)('.*')         = $1'd0480039bceef97a558027bfb868b77be1717ec1097410c697db383315243895'
Attempting to build package from 'mysql.nuspec'.
Successfully created package 'C:\Repositories\chocolatey-packages\automatic\mysql\mysql.8.0.34.nupkg'

Package updated

Path          : C:\Repositories\chocolatey-packages\automatic\mysql
Name          : mysql
Updated       : True
Pushed        : False
RemoteVersion : 8.0.34
NuspecVersion : 8.0.31
Result        : {mysql - checking updates using au version 2022.10.24, , URL check,   https://cdn.mysql.com/Downloads/MySQL-8.0/mysql-8.0.34-winx64.zip…}
Error         :
NuspecPath    : C:\Repositories\chocolatey-packages\automatic\mysql\mysql.nuspec
NuspecXml     : #document
Ignored       : False
IgnoreMessage :
StreamsPath   : C:\Repositories\chocolatey-packages\automatic\mysql\mysql.json
Streams       :

Screenshot (if appropriate, usually isn't needed):

Types of changes

Checklist:

AppVeyorBot commented 9 months ago

:white_check_mark: Package verification completed without issues. PR is now pending human review