GithubHelp home page GithubHelp logo

Comments (4)

mauritsvanrees avatar mauritsvanrees commented on May 25, 2024

When I use the annotate command, the parts do contain instance:

$ bin/buildout -c test-4.3.cfg annotate
...
parts= 
instance
omelette
ploneversioncheck
createcoverage
code-analysis

And when I run the buildout for real, it indeed creates a bin/instance script.
This is on Mac.
So: no idea.

You could try an upgrade to zc.buildout 2.13.8, or even 3.0.1 which still works on Python 2.7.

from buildout.

sgeulette avatar sgeulette commented on May 25, 2024

Sorry, after encountered the bug (seen by gotcha), I have included instance part in base.cfg to continue working.
I just removed my local correction and bumped zc.buildout to 3.0.1.
If you test again, I think you will now have the error.

from buildout.

mauritsvanrees avatar mauritsvanrees commented on May 25, 2024

Okay, when I revert your change, it no longer installs the instance part.

Let's see, when I take the relevant extends and parts lines, it boils down to this config:

test-4.3.cfg
extends =
    https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-4.3.x.cfg
        extends = plone-4.3.x.cfg
            parts = instance
        parts += test
    base.cfg
        extends = https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg
                parts +=
                    code-analysis
                    i18ndude
        parts +=
            omelette
            ploneversioncheck
            createcoverage

From that, I would hope for the following buildout parts, preferably in this order:

instance
test
code-analysis
i18ndude
omelette
ploneversioncheck
createcoverage

Instead, the resulting [buildout] parts option is:

$ bin/buildout -c test-4.3.cfg query buildout:parts

omelette
ploneversioncheck
createcoverage
code-analysis
i18ndude

When I comment out base.cfg, I get:

$ bin/buildout -c test-4.3.cfg query buildout:parts
instance
test

When I keep base.cfg but comment out qa.cfg:

$ bin/buildout -c test-4.3.cfg query buildout:parts
instance
test
omelette
ploneversioncheck
createcoverage

In the original config again, with annotate I see:

parts= 
omelette
ploneversioncheck
createcoverage
code-analysis
i18ndude
    IMPLICIT_VALUE
+=  base.cfg
+=  https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg

So the parts += from buildout.plonetest/master/test-4.3.x.cfg and the parts= from buildout.plonetest/master/test-4.3.x.cfg are effectively ignored.

It could be a bug in Buildout, that it uses an unexpected order when using nested extends.

What seems to work for me:

  • Remove the extends of qa.cfg from base.cfg.
  • Instead copy it to test-4.3.cfg (and the other versions files, so a bit of duplication) like this:
extends =
    https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-4.3.x.cfg
    https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg
    base.cfg

from buildout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.