Bug 578428 - [target] PDE should support some means to define a mirror for an updatesite
Summary: [target] PDE should support some means to define a mirror for an updatesite
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.22   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-28 07:20 EST by Christoph Laeubrich CLA
Modified: 2022-01-31 06:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Laeubrich CLA 2022-01-28 07:20:27 EST
Currently the IU location is always loaded from the configured URL in the target file. In several cases it would be convenient to configure a mirror as tycho support it.

These cases include:

- You have build a local version of a project and like to use that build result instead of the official URL to test if a change/bugfix is working as desired
- You want to mirror official sites, e.g. for performance or offline usage

For example there could be a new preference under PDE > Target Platforms > Mirrors where I can specify a mirror for a given URL.
Comment 1 Wim Jongman CLA 2022-01-31 06:25:19 EST
(In reply to Christoph Laeubrich from comment #0)
> Currently the IU location is always loaded from the configured URL in the
> target file. In several cases it would be convenient to configure a mirror
> as tycho support it.
> 
> These cases include:
> 
> - You have build a local version of a project and like to use that build
> result instead of the official URL to test if a change/bugfix is working as
> desired
> - You want to mirror official sites, e.g. for performance or offline usage
> 
> For example there could be a new preference under PDE > Target Platforms >
> Mirrors where I can specify a mirror for a given URL.

This is a solution to a problem. 

I guess that the problem is that you want the build to not fail if one site cannot be reached. 

If this guess is correct, then maybe it is better to let PDE cache the previous successful pull and use that in case of a network failure.
Comment 2 Christoph Laeubrich CLA 2022-01-31 06:33:22 EST
(In reply to Wim Jongman from comment #1)
> This is a solution to a problem. 
> 
> I guess that the problem is that you want the build to not fail if one site
> cannot be reached. 
> 
> If this guess is correct, then maybe it is better to let PDE cache the
> previous successful pull and use that in case of a network failure.

Hi Wim, actually I have the following in mind:

Lets say I have an open-source repository and publish a target file with all the official URLs in them.

Now I want to use the company mirror (not reachable from the internet) for that as I'm not allowed/want/whatever reach out directly to the internet.

What should I do? Maintain two target files? edit mine and make sure I never commit it, what about updates? Should I simply don't care about people out there and hack in my own URLs let the target fail for everyone else?

This is essentially the same as maven allows to define mirrors for certain repositories (and Tycho already support this).