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

Invoke-Webrequest in Powershell gets old version #1382

Open
arutscheidt opened this issue Mar 7, 2024 · 1 comment
Open

Invoke-Webrequest in Powershell gets old version #1382

arutscheidt opened this issue Mar 7, 2024 · 1 comment

Comments

@arutscheidt
Copy link

Describe the bug
Today I wanted to update via script and used the Invoke-Webrequest command in Powershell.
Maybe I would implement an automation (cron) in the future that deploys the current version to all of my projects.

But instead of the new 3.3.1 the 3.2.2 is downloaded.
The new version is 5 days old. Is ist tranfered manually or is it an error in the pipeline?

To Reproduce
Steps to reproduce the behavior:

  1. Open a PowerShell in the Project directory
  2. Call
    Invoke-WebRequest doctoolchain.github.io/dtcw.ps1 -Outfile dtcw.ps1 (old version)
    or
    Invoke-WebRequest doctoolchain.org/dtcw.ps1 -Outfile dtcw.ps1 (current version on doctoolchain.org)
  3. Open the resulting dtce.ps1 file
  4. See version

Expected behavior
Should be the current version from https://github.com/docToolchain/docToolchain

When downloading the file manually, the version is correct.

@PacoVK
Copy link
Collaborator

PacoVK commented Apr 2, 2024

Hey @arutscheidt this is strange because the script source references the 3.3.1
Maybe you hav set the DTC_VERSION in your environment, which would take precedence over the script version.
Can you please check that and let us know?
Thanks for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants