shell: Do not auto-detect manifest when '-p' is used.

Previous, "guix shell -p /path/to/profile" would have manifest/guix.scm
auto-detection turned on.

* guix/scripts/shell.scm (auto-detect-manifest)[options-contain-payload?]:
Return #t for 'profile.
This commit is contained in:
Ludovic Courtès 2022-06-16 16:53:36 +02:00
parent c8e393ffe2
commit 4231031b69
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -256,6 +256,7 @@ (define (options-contain-payload? opts)
((('package . _) . _) #t)
((('load . _) . _) #t)
((('manifest . _) . _) #t)
((('profile . _) . _) #t)
((('expression . _) . _) #t)
((_ . rest) (options-contain-payload? rest))))