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

azuredatastudio: 1.48.1 -> 1.49.0 (fixes hash mismatch) #334220

Closed
wants to merge 1 commit into from

Conversation

gaelj
Copy link

@gaelj gaelj commented Aug 12, 2024

Description of changes

Dear maintainer @xavierzwirtz

I got a hash mismatch error when trying to install azure data studio on unstable.

After fixing the hash error (and remaining on the same version, 1.48.1), I got a new error about sqltoolsservicePath not being found (because it was expecting version 5.0.20240724.1 instead of 4.11.1.1), so I corrected it as well.

This got it working on my machine, a QEmu x64 VM.

Then I noticed that the installed version was actually 1.49.0, even though the download link was pointing to 1.48.1. So I corrected the version tag as well.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Aug 12, 2024
@gaelj gaelj changed the title azuredatastudio-1.48.1: Fix hash mismatch error and wrong version of sqltoolsservicePath Draft: azuredatastudio-1.48.1: Fix hash mismatch error and wrong version of sqltoolsservicePath Aug 12, 2024
@gaelj gaelj changed the title Draft: azuredatastudio-1.48.1: Fix hash mismatch error and wrong version of sqltoolsservicePath azuredatastudio-1.48.1: Fix hash mismatch error and wrong version of sqltoolsservicePath Aug 12, 2024
@gaelj gaelj changed the title azuredatastudio-1.48.1: Fix hash mismatch error and wrong version of sqltoolsservicePath azuredatastudio-1.48.1: Fix hash mismatch error and wrong version of sqltoolsservicePath / update to 1.49.0 Aug 12, 2024
@hauskens
Copy link
Contributor

Result of nixpkgs-review pr 334220 run on x86_64-linux 1

1 package built:
  • azuredatastudio

@hauskens hauskens requested review from hauskens and Daru-san August 12, 2024 20:27
@ofborg ofborg bot requested a review from xavierzwirtz August 12, 2024 20:53
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 labels Aug 12, 2024
@Daru-san
Copy link
Contributor

Thanks for doing this. Could you please rebase your commits when merging/syncing your branch with the master branch?

@Daru-san
Copy link
Contributor

Other than that it all looks good to me 👍

@gaelj gaelj force-pushed the fix-azuredatastudio-hash-mismatch branch from d3b6158 to 40b7f7c Compare August 15, 2024 15:05
@gaelj gaelj force-pushed the fix-azuredatastudio-hash-mismatch branch from 40b7f7c to 1e6f2b4 Compare August 15, 2024 15:07
@gaelj
Copy link
Author

gaelj commented Aug 15, 2024

I rebased and squashed into a single commit that hopefully respects the guidelines.

@Daru-san
Copy link
Contributor

Cool. Thank you

@hauskens hauskens added the 12.approvals: 2 This PR was reviewed and approved by two reputable people label Aug 15, 2024
@Rutgerdj
Copy link
Contributor

The problem is that the download link always provides the latest version, even when you put in an older version string.

A few days ago a new version of ADS has been released (1.49.1), so this PR doesn't work anymore.

I have asked if there is a way to download a specific build of ADS on the ADS repo:
microsoft/azuredatastudio#25735 (comment)

@gaelj
Copy link
Author

gaelj commented Aug 18, 2024

@Rutgerdj I tried the proposed method on your link and did not get any joy. I notified it in that thread - hoping they can help us out.

@Rutgerdj
Copy link
Contributor

Yeah the proposed method only works for old (archived) builds I assumed

@gaelj
Copy link
Author

gaelj commented Aug 20, 2024 via email

@Rutgerdj
Copy link
Contributor

I can pick this up and integrate the new URL. Best is to create a new PR for it I think?

@SuperSandro2000 SuperSandro2000 changed the title azuredatastudio-1.48.1: Fix hash mismatch error and wrong version of sqltoolsservicePath / update to 1.49.0 azuredatastudio: 1.48.1 -> 1.49.0 (fixes hash mismatch) Aug 20, 2024
@SuperSandro2000
Copy link
Member

The problem is that the download link always provides the latest version, even when you put in an older version string.

A few days ago a new version of ADS has been released (1.49.1), so this PR doesn't work anymore.

I have asked if there is a way to download a specific build of ADS on the ADS repo: microsoft/azuredatastudio#25735 (comment)

that please proxy the download through web.archive.org

@Rutgerdj
Copy link
Contributor

that please proxy the download through web.archive.org
@SuperSandro2000

Is that common practice? We don't need it anymore for downloading specific versions.
I noticed that web.archive.org was down for a few hours. I don't know if that happens more often or that was just a coincidence.

@Rutgerdj Rutgerdj mentioned this pull request Aug 20, 2024
13 tasks
@Rutgerdj
Copy link
Contributor

@hauskens @Daru-san @xavierzwirtz I have created a PR (#336114) that solves the issue of the URL always pointing to the latest version.
Would be great if you could check it out, I think this PR can be abandoned

@gaelj gaelj closed this Aug 20, 2024
@gaelj gaelj deleted the fix-azuredatastudio-hash-mismatch branch August 31, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 12.approvals: 2 This PR was reviewed and approved by two reputable people 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants