Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Reproducible Version Qualifiers with only using the git info

Hi

The jgit timestamp provider is an attractive replacement for the Buckminster reference repo and I adopted it for the OCL builds and encouraged UML2 to adopt it too.

However if you read through https://bugs.eclipse.org/bugs/show_bug.cgi?id=529933 you will see my initial enthusiasm for the jgit timestamp provider turn into a realisation that it is unsound in general. But if you have special constraints it may nonetheless be ok for you.

My builds now always churn qualifiers.

    Regards

        Ed Willink

On 21/04/2021 08:53, Mickael Istria wrote:


On Wed, Apr 21, 2021 at 9:29 AM Christoph Läubrich <laeubi@xxxxxxxxxxxxxx> wrote:
"Version qualifier is calculated based on timestamp of the most recent
commit that touches any file under project base directory"

so project basedir = "bundle" and not "git-tree"?

 > But it would still be possible to build such a strategy

would I need a new one or could the jgit be configured to behave that
way?

You should already be able to use the jgit timastamp provider without using baseline.
 
So do I can assume that this might be uncommon but working use-case or
will it break something?

Yes, it's a working use-case.

... I think that would be a really cool feature to have such
"incremental-build" support in tycho :-)

I don't think it fits the Maven/Tycho layer and their related build model, it's more operating a build strategy, a bit higher-level than just a build tool.

one problem I have stumpled in the past was that the features don't get
rebuild (as there is no change from maven POV). I don't know if this is
just unsupprted or I just configured something wrong.

It's a bit tricky: feature qualifier do depend on the change in the feature folder and on content of the feature. Features sometimes require to be "touched" manually for version changes to cascade into them.
For your case, since building features is usually very cheap, you may want to try first filtering out only untouched bundles but keep building all features anyway.

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user

Virus-free. www.avast.com

Back to the top