File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,15 @@ def comment_out_environments_that_wont_solve(
253
253
# Create a new table to rebuild with the desired order
254
254
new_environments_table = tomlkit .table ()
255
255
256
- COMMENT_TEXT = "Disable non-default environments pending <https://github.com/prefix-dev/pixi/issues/2725>"
256
+ COMMENT_TEXT_1 = (
257
+ "Disable non-default environments pending "
258
+ "<https://github.com/prefix-dev/pixi/issues/2725>"
259
+ )
260
+ COMMENT_TEXT_2 = (
261
+ "If you want to re-enable some of these, it's recommended to "
262
+ "remove the solve-group key."
263
+ )
264
+
257
265
# Process each key-value pair in the original table
258
266
for key , value in environments_item .items ():
259
267
if key == "default" :
@@ -262,7 +270,8 @@ def comment_out_environments_that_wont_solve(
262
270
263
271
# Add explanatory comment at the beginning
264
272
new_environments_table .append (None , tomlkit .nl ())
265
- new_environments_table .append (None , tomlkit .comment (COMMENT_TEXT ))
273
+ new_environments_table .append (None , tomlkit .comment (COMMENT_TEXT_1 ))
274
+ new_environments_table .append (None , tomlkit .comment (COMMENT_TEXT_2 ))
266
275
else :
267
276
# Convert other environments to comments
268
277
comment_text = f"{ key } = { value .as_string ()} "
You can’t perform that action at this time.
0 commit comments