← Back to issue list

Environment stops working in snapcraft if defined

View original Github issue

Metadata

Project
snapcraft
Number
#4159
Type
issue
State
closed
Author
sergiusens
Labels
Status: Triaged Type: Bug
Created
Updated
Closed

Current evaluation

The regression causing PATH and LD_LIBRARY_PATH to disappear when defining environment variables in snapcraft.yaml was fixed in core22+.

Suggested action:

No scores available.

Issue body

### Bug Description if I defined environment in snapcraft.yaml PATH and LD_LIBRARY_PATH are no longer valid ### To Reproduce ``` environment: foo: foo ``` then PATH and LD_LIBRARY_PATH are no longer set ### Environment N/A ### snapcraft.yaml ```shell N/A ``` ### Relevant log output ```shell N/A ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b The regression causing PATH and LD_LIBRARY_PATH to disappear when defining environment variables in snapcraft.yaml was fixed in core22+.
qwen/qwen3.6-35b-a3b Fixed in core22+. Defining environment variables in snapcraft.yaml previously broke PATH and LD_LIBRARY_PATH. The update restores default paths while allowing custom environment definitions.
qwen/qwen3.6-35b-a3b Defining environment variables in snapcraft.yaml previously broke PATH and LD_LIBRARY_PATH. This bug has been fixed in core22+, as the maintainer noted the change could be disruptive for older bases.
qwen/qwen3.6-35b-a3b Defining environment variables in snapcraft.yaml previously overwrote default PATH and LD_LIBRARY_PATH. This bug has been fixed in core22+ to restore proper environment handling without disrupting existing snaps.
qwen3.6-35b-a3b-mtp-q6 Defining environment variables in snapcraft.yaml previously broke PATH and LD_LIBRARY_PATH. The bug was fixed in core22+, restoring proper environment handling. Closed.
qwen3.6-35b-a3b-mtp-q6 Defining the environment block in snapcraft.yaml previously broke PATH and LD_LIBRARY_PATH. The bug was fixed in core22+ and the issue is closed.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2011842 Incorrect default LD_LIBRARY_PATH snapcraft (launchpad) open Bug report about snapcraft not properly handling shell expansion in environment variables like ${LD_LIBRARY_PATH:-Foo}
71%