moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
7.85k stars 1.09k forks source link

shell: handle empty string for var replacements #5052

Closed tonistiigi closed 2 weeks ago

tonistiigi commented 2 weeks ago

Avoid nil dereference when variable replacements/trims are used with empty string argument.