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

(tortoisesvn) Fix finding download URL from SourceForge #2446

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

WhereTheTimeWent
Copy link
Contributor

@WhereTheTimeWent WhereTheTimeWent commented Mar 31, 2024

The current attempt of finding the download URL on SourceForge for TortoiseSVN doesn't work anymore.
It now gets the URL by checking data-release-url for "downloads.sourceforge.net".

How Has this Been Tested?

I tested it with VSCode. It returned downloadable URLs. They were both downloadable with Firefox and System.Net.WebClient (PowerShell).
I also ran Update-Package and it completed without errors.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Migrated package (a package has been migrated from another repository)

Checklist:

  • My code follows the code style of this repository.
  • My change requires a change to documentation (this usually means the notes in the description of a package).
  • I have updated the documentation accordingly (this usually means the notes in the description of a package).
  • I have updated the package description and it is less than 4000 characters.
  • All files are up to date with the latest Contributing Guidelines
  • The added/modified package passed install/uninstall in the Chocolatey Test Environment(https://github.com/chocolatey-community/chocolatey-test-environment/). Note that we don't support the use of any other environment.
  • The changes only affect a single package (not including meta package).

@AppVeyorBot
Copy link

❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look.

@WhereTheTimeWent WhereTheTimeWent marked this pull request as draft March 31, 2024 19:30
@AppVeyorBot
Copy link

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

@WhereTheTimeWent WhereTheTimeWent marked this pull request as ready for review March 31, 2024 19:41
@AdmiringWorm AdmiringWorm linked an issue Apr 4, 2024 that may be closed by this pull request
4 tasks
@WhereTheTimeWent WhereTheTimeWent marked this pull request as draft April 4, 2024 18:09
@AppVeyorBot
Copy link

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

1 similar comment
@AppVeyorBot
Copy link

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

@WhereTheTimeWent WhereTheTimeWent marked this pull request as ready for review April 4, 2024 19:24
@WhereTheTimeWent
Copy link
Contributor Author

Sorry for this mess. Not new to PowerShell, but new to AU and pull requests.
We should now have a reliable way of updating TortoiseSVN.

JPRuskin
JPRuskin previously approved these changes Jun 13, 2024
Copy link
Contributor

@JPRuskin JPRuskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I'll just rebase it and add the commit heading we use to indicate that it affects a package.

Thank you for getting this sorted!

@AppVeyorBot
Copy link

❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look.

@JPRuskin
Copy link
Contributor

image

Given that error, I'm going to trigger the build by pushing and removing a commit. Sorry for the noise.

@AppVeyorBot
Copy link

❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look.

@AppVeyorBot
Copy link

❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look.

@AppVeyorBot
Copy link

❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look.

@WhereTheTimeWent
Copy link
Contributor Author

Are there problems with my change? Update-Package and Test-Package run without issues on my end and download/install the latest version 1.14.7.29687.

@JPRuskin
Copy link
Contributor

Are there problems with my change?

Not at all.

All works fine on my end too - I'm just trying to chase down the reason we're getting that failure on the AppVeyor build. It's an odd one as a) it's not a package that's in the dependency chain from TortoiseSVN and b) it's not failing in other builds yesterday/today.

@pauby
Copy link
Member

pauby commented Jun 29, 2024

@JPRuskin did you find any more on this?

@sebvonhelsinki
Copy link

@JPRuskin Is there any update on the state of this PR? Would it be possible to just re-trigger the build and see if it is working now? Is there anything someone else could do to advance this PR?

@fbuehler-vector
Copy link

@JPRuskin can we please rerun the CI? i tested it localy an it works fine. Not sure why the CI failed.

@JPRuskin
Copy link
Contributor

JPRuskin commented Oct 2, 2024

Rebased it onto the latest version of main; if it fails again I'll dive back into the joys of AppVeyor.

@AppVeyorBot
Copy link

❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look.

@AppVeyorBot
Copy link

❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look.

@fbuehler-vector
Copy link

tortoisesvn - Unable to resolve dependency 'chocolatey-compatibility.extension'. Source(s) used: 'C:\projects\chocolatey-packages\automatic\tortoisesvn', 'https://chocolatey.org/api/v2/'. is available for me: https://community.chocolatey.org/packages/chocolatey-compatibility.extension

i would suggest to update chocolatey to the latest version. maybe this fixes the problem:

reminder in 2.1.0 something was fixed with proxy issues: chocolatey/choco#3181

The current attempt of finding the download URL on SourceForge for TortoiseSVN doesn't work anymore.
Get-RemoteFiles tried to add the ? and everything afterwards to the download's file name.
Grabbing data-release-url wasn't reliable and unnecessarily complicated. Just putting /download at the end of the URL and returning FileType = "msi" did the trick.
@AppVeyorBot
Copy link

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

The dependencies introduced by AutoHotKey v1 were causing some builds to fail without good cause, e.g. when it was upgraded.

Removing it shouldn't increase build times _too_ much, but allow some builds to succeed.
@JPRuskin
Copy link
Contributor

i would suggest to update chocolatey to the latest version. maybe this fixes the problem:

I believe it's not on the latest version due to the requirement for the Community packages to support the version available a year ago, though I may be mistaken.

Very sorry for all the delays, I think we've sorted the issue with the build now. Autohotkey and it's dependencies were very occassionally causing fun issues that seemed to come from nowhere.

I've rebased onto the latest version of main, and assuming this latest build completes, will merge this in shortly.

@AppVeyorBot
Copy link

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

Copy link
Contributor

@JPRuskin JPRuskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! So sorry about the build issues dragging on like that. Thank you for getting it fixed!

@JPRuskin JPRuskin merged commit 16bf649 into chocolatey-community:master Oct 15, 2024
1 check passed
@WhereTheTimeWent WhereTheTimeWent deleted the patch-1 branch October 15, 2024 10:44
@WhereTheTimeWent
Copy link
Contributor Author

Thank you for fixing the rest! :)

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

Successfully merging this pull request may close these issues.

(tortoisesvn) outdated
6 participants