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

Latest version reports it is old #3776

Closed
HolisticDeveloper opened this issue Jul 25, 2024 · 11 comments · Fixed by #4223 · May be fixed by #4224
Closed

Latest version reports it is old #3776

HolisticDeveloper opened this issue Jul 25, 2024 · 11 comments · Fixed by #4223 · May be fixed by #4224

Comments

@HolisticDeveloper
Copy link

Version

Core Tools Version: 4.0.1 Commit hash: N/A +807e89766a92b14fd07b9f0bc2bea1d8777ab209 (32-bit)
Function Runtime Version: 4.834.3.22875

Description

I have the latest v4.0.5907 release installed, but when I run func it includes the following statement at the end of the output:

You are using an old Core Tools version. Please upgrade to the latest version.

Steps to reproduce

  1. Install via chocolatey: choco install azure-functions-core-tools.
  2. In a PowerShell prompt, run func.
  3. Observe the output.
@HolisticDeveloper
Copy link
Author

By default, the Chocolatey package downloads https://functionscdn.azureedge.net/public/4.0.5907/Azure.Functions.Cli.win-x86.4.0.5907.zip. It ends up creating a shim that points at the unzipped in-proc8\func.exe. It is this exe that has the 4.0.1 version. (.\func.exe has the correct version.)

@fabiocav
Copy link
Member

@kshyju has more context on this.

@VineethReyya
Copy link
Contributor

VineethReyya commented Oct 30, 2024

Hi @kshyju, looking at the Logs of the chocolatey, shim for generating twice (we have 2 executables: one in root folder and other in inproc8) and --iconpath(target path) is getting replaced with inproc8/func.exe when shim is generated 2nd time. so, it is running the func.exe present in 'root/inproc8' folder. Could you please provide overview on whether shim needs to generate twice or based on some condition (
[installation script] (https://github.com/Azure/azure-functions-core-tools/blob/v4.x/publish-scripts/chocolatey/installps_template)
of chocolatey).
Image

@TanjaPGGM
Copy link

I am experiencing the same issue.
Both version 4.0.6543 and 4.0.6594 show 4.0.6518 when requesting the version number using func --version.

Manually recreating the first shim for func.exe (in \lib\azure-functions-core-tools\tools\func.exe) seems to solve the problem at our end as a workaround.

VineethReyya pushed a commit that referenced this issue Nov 21, 2024
@VineethReyya VineethReyya linked a pull request Nov 21, 2024 that will close this issue
5 tasks
@VineethReyya VineethReyya removed a link to a pull request Nov 21, 2024
5 tasks
@VineethReyya VineethReyya linked a pull request Nov 25, 2024 that will close this issue
5 tasks
@VineethReyya VineethReyya removed a link to a pull request Nov 25, 2024
5 tasks
@VineethReyya VineethReyya linked a pull request Nov 25, 2024 that will close this issue
5 tasks
@VineethReyya VineethReyya linked a pull request Nov 25, 2024 that will close this issue
5 tasks
@VineethReyya VineethReyya linked a pull request Nov 25, 2024 that will close this issue
5 tasks
@SeanFeldman
Copy link

This also happens when installing using Windows Installer (.exe).
Image
followed by
Image

4.0.6610 Commit hash: N/A +0d55b5d7efe83d85d2b5c6e0b0a9c1b213e96256 (64-bit) is the latest at the time this comment is posted.

@JonSilver
Copy link

This also happens using the npm package.

npm i -g azure-functions-core-tools@latest

Image

Image

@ThomasBarnekow
Copy link

And this also happens when installing or reinstalling using brew on macOS:

brew reinstall azure-functions-core-tools@4

Further, I used install first and canceled after "a few minutes" because I thought it was stuck. Then, I used reinstall and waited patiently. It took 4 minutes and 37 seconds to build on my MacBook Pro M1 Max. I did not expect that.

@pitscher
Copy link

pitscher commented Jan 1, 2025

Can confirm what @ThomasBarnekow mentioned. I am using it on a Macbook with the M1 chip/Apple Silicon.
However, I uninstalled it completely, performed a brew cleanup and installed it again.
Same output:

Azure Functions Core Tools
Core Tools Version:       4.0.6610 Commit hash: N/A +0d55b5d7efe83d85d2b5c6e0b0a9c1b213e96256 (64-bit)
Function Runtime Version: 4.1036.1.23224

<...truncated...>

You are using an old Core Tools version. Please upgrade to the latest version.

Any news on this @VineethReyya ?

@woeterman94
Copy link

Any update on this please? The official link in the docs installs version 4.0.6610.

@ThijsHakkenbergLobster
Copy link

Also having this problem, so does all of my team using Mac's. I think it's safe to say that most users (both win as mac) will have this issue? When is a fix expected?

@pitscher
Copy link

Yay - it's fixed. Thank you @VineethReyya :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment