apache / apache/buildstream

Support overwriting complete dict

Open
#272 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
140
Forks
45
Avg merge
1d 3h
Merged PRs (30d)
6

Description

[See original issue on GitLab](https://gitlab.com/BuildStream/buildstream/-/issues/272)
In GitLab by [[Gitlab user @juergbi]](https://gitlab.com/juergbi) on Feb 24, 2018, 11:46

It's currently not possible to completely control the environment variables in a project. Composition allows overriding individual variables of the `environment` dict in the default project configuration. However, it's not possible to unset environment variables. It's also not possible to overwrite/replace the complete dict to be independent from the currently installed default configuration.

Would it make sense to support `(=)` for dicts as well?

Contributor guide

Open the contributing guide

Research direction

The issue names no source file or test. Start by tracing how project configuration composes the environment dict and how the existing `(=)` operation is handled; done means supporting complete dict replacement and unsetting inherited variables, with tests covering both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.