• Tom Pollard's avatar
    element.py: Discard __artifact/__strict_artifact in update_state() · c2673f4a
    Tom Pollard authored
    When we determine that current cache keys are to be discarded, we
    should also discard the associated members for correctness. This
    should act as a safeguard against accessing Artifact instances that
    have discarded cache keys.
    
    A side effect of this is the querying of element buildtree state
    from cli methods on elements that don't have a cached artifact
    would lead to the artifact member methods not being reachable.
    Ensuring the element is cached before trying to call said accessor
    methods resolves this.
    c2673f4a
Name
Last commit
Last update
.gitlab Loading commit data...
.gitlab-ci Loading commit data...
buildstream Loading commit data...
contrib Loading commit data...
doc Loading commit data...
man Loading commit data...
requirements Loading commit data...
tests Loading commit data...
.coveragerc Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.pylintrc Loading commit data...
BuildStream.doap Loading commit data...
CONTRIBUTING.rst Loading commit data...
COPYING Loading commit data...
MAINTAINERS Loading commit data...
MANIFEST.in Loading commit data...
NEWS Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
versioneer.py Loading commit data...