create a deepcopy of TaskSpec init params
See original GitHub issuedata
, and meta
params in the TaskSpec constructor are dictionaries: https://github.com/ploomber/ploomber/blob/c87c60db954f72309b1e421a5399f9f6a426e5fe/src/ploomber/spec/taskspec.py#L166
Since both of them are modified inside the class, we should call copy.deepcopy
to prevent side-effects outside the class
https://github.com/ploomber/ploomber/blob/master/src/ploomber/spec/taskspec.py#L166
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
copy — Shallow and deep copy operations — Python 3.11.1 ...
If the __deepcopy__() implementation needs to make a deep copy of a component, it should call the deepcopy() function with the component as...
Read more >Tekton Pipelines
params - Specifies the Parameters that the Pipeline requires. workspaces - Specifies a set of Workspaces that the Pipeline requires. tasks : name...
Read more >Pipelines | CI/CD | OpenShift Container Platform 4.11
Enter a non-empty array of static values or variables such as parameters, ... taskSpec: workspaces: - name: source description: The workspace to create...
Read more >Tekton - Jerome Boyer's Personal Site
tasks: - name: fetch-source taskRef: name: git-clone kind: ClusterTask workspaces: - name: output workspace: build-ws params: - name: url value: ...
Read more >Chapter 4. Pipelines OpenShift Container Platform 4.8
A new Dockerfile is added for pullrequest-init for build-base image ... 7 - name: commit value: $(tasks.clone-app-repo.results.commit) taskSpec: 8 params: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PR: https://github.com/ploomber/ploomber/pull/390
done!