azure / homebrew-functions Goto Github PK
View Code? Open in Web Editor NEWHomebrew formula for azure functions core tools
License: MIT License
Homebrew formula for azure functions core tools
License: MIT License
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the azure/functions tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/azure/homebrew-functions/Formula/[email protected]:10
Attempting to install using the following commands as documented here results in an error about SHA mismatch on current version of brew and tap. Detailed output below:
$ brew install azure-functions-core-tools
==> Installing azure-functions-core-tools from azure/functions
==> Downloading https://functionscdn.azureedge.net/public/2.7.1704/Azure.Functions.Cli.osx-x64.2.7.1704.zip
Already downloaded: /Users/<user>/Library/Caches/Homebrew/downloads/4223ef6c32b3475a53ab22fdeec592cc706c17423110807efb476c559a6a76f6--Azure.Functions.Cli.osx-x64.2.7.1704.zip
Error: An exception occurred within a child process:
ChecksumMismatchError: SHA256 mismatch
Expected: 95cb70382edc50e2264de0b41839476618c946d18fd8067ed0933f685e50f89e
Actual: 47d20c45c95b3986c54003a448bc866995c9cb540400d201612012fd7cba3f95
Archive: /Users/<user>/Library/Caches/Homebrew/downloads/4223ef6c32b3475a53ab22fdeec592cc706c17423110807efb476c559a6a76f6--Azure.Functions.Cli.osx-x64.2.7.1704.zip
To retry an incomplete download, remove the file above.
Hello,
when do you plan to update the Homebrew version? I am specifically interested in 4.34.1 or above to use the HTTP Streams in Python functionality.
Thanks!
Formula is not inline with latest beta release
azure-functions-core-tools 3.0.2358 was released on Mar 8, but the brew formula hasn't been bumped.
The extension just tried to self-upgrade, and failed because brew upgrade azure-functions-core-tools
gave the following output:
Updating Script templates for runtime "~2" to version "2.11.1"...
Successfully updated templates.
Updating .NET templates for runtime "~2" to version "2.11.1"...
Successfully updated templates.
Running command: "brew upgrade azure-functions-core-tools"...
Error: /usr/local/Cellar is not writable. You should change the
ownership and permissions of /usr/local/Cellar back to your
user account:
sudo chown -R $(whoami) /usr/local/Cellar
Error: The following directories are not writable by your user:
/usr/local/Cellar
/usr/local/Frameworks
/usr/local/Homebrew
/usr/local/bin
/usr/local/etc/bash_completion.d
/usr/local/include
/usr/local/lib/pkgconfig
/usr/local/lib/python3.7/site-packages
/usr/local/opt
/usr/local/share/aclocal
/usr/local/share/doc
/usr/local/share/locale
/usr/local/share/man/man1
/usr/local/share/man/man2
/usr/local/share/man/man3
/usr/local/share/man/man4
/usr/local/share/man/man5
/usr/local/share/man/man6
/usr/local/share/man/man7
/usr/local/share/man/man8
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew/linked
/usr/local/var/homebrew/locks
/usr/local/var/log
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/Cellar /usr/local/Frameworks /usr/local/Homebrew /usr/local/bin /usr/local/etc/bash_completion.d /usr/local/include /usr/local/lib/pkgconfig /usr/local/lib/python3.7/site-packages /usr/local/opt /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/locale /usr/local/share/man/man1 /usr/local/share/man/man2 /usr/local/share/man/man3 /usr/local/share/man/man4 /usr/local/share/man/man5 /usr/local/share/man/man6 /usr/local/share/man/man7 /usr/local/share/man/man8 /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew/linked /usr/local/var/homebrew/locks /usr/local/var/log
This is normal in my case because I never run any brew
command under my own user account (I only run non-App Store installers and brew
under an admin account), but needs to be handled correctly, because even though it is (sadly) common practice for Mac users to run everything under admin accounts, using that as an install/upgrade assumption will break things for those of us who are more careful about security.
The ask here is that the non-admin scenario be taken into account, and (hopefully) the way it's handled become a standard practice for this and other extensions.
When upgrading to azure-functions-core-tools
to version 2.0.1-beta.34
I get the following homebrew error.
➜ ~ brew upgrade azure/functions/azure-functions-core-tools
==> Upgrading 1 outdated package, with result:
azure/functions/azure-functions-core-tools 2.0.1-beta.33 -> 2.0.1-beta.34
==> Upgrading azure/functions/azure-functions-core-tools
==> Downloading https://functionscdn.azureedge.net/public/2.0.1-beta.34/Azure.Fu
Already downloaded: /Users/user/Library/Caches/Homebrew/azure-functions-core-tools-2.0.1-beta.34.zip
Error: SHA256 mismatch
Expected: 44082FD0B056E8ED546B7515C60DDE829952A6D63EED5CA4E009002396329C22
Actual: 44082fd0b056e8ed546b7515c60dde829952a6d63eed5ca4e009002396329c22
Archive: /Users/user/Library/Caches/Homebrew/azure-functions-core-tools-2.0.1-beta.34.zip
To retry an incomplete download, remove the file above.
As seen in the output above the SHA256 checksum is in upper case, while homebrew is expecting a SHA256 in the lowercase.
In the Formula file, changing the sum from uppercase:
sha256 "44082FD0B056E8ED546B7515C60DDE829952A6D63EED5CA4E009002396329C22"
to lowercase:
sha256 "44082fd0b056e8ed546b7515c60dde829952a6d63eed5ca4e009002396329c22"
Fixes the problem:
➜ ~ brew upgrade azure/functions/azure-functions-core-tools
==> Upgrading 1 outdated package, with result:
azure/functions/azure-functions-core-tools 2.0.1-beta.33 -> 2.0.1-beta.34
==> Upgrading azure/functions/azure-functions-core-tools
==> Downloading https://functionscdn.azureedge.net/public/2.0.1-beta.34/Azure.Functions.Cl
Already downloaded: /Users/user/Library/Caches/Homebrew/azure-functions-core-tools-2.0.1-beta.34.zip
🍺 /usr/local/Cellar/azure-functions-core-tools/2.0.1-beta.34: 489 files, 216.1MB, built in 3 seconds
Homebrew supports detecting the os version, so we can replace the hard-coded URL with the following code.
if OS.mac?
url "osx.zip"
elsif OS.linux?
url "linux.zip"
end
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
Since according to [1] Version 4 is the new default. Would it be possible to switch the [email protected]
to azure-functions-core-tools.rb
so it gets rolled out by default?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.