[common-utils] - append shell history functionality - #1026#1157
[common-utils] - append shell history functionality - #1026#1157gauravsaini04 wants to merge 39 commits intodevcontainers:mainfrom
Conversation
eitsupi
left a comment
There was a problem hiding this comment.
Some questions:
- Wouldn't adding more functionality to common-utils here go against this discussion? #67
- Why not use lifecycle-scripts? See stuartleeks/dev-container-features#16
…_common-utils_integration
eitsupi
left a comment
There was a problem hiding this comment.
Why add this functionality to common-utils instead of relying on another Feature?
Wouldn't common-utils be too heavy a dependency for users who only want to use history?
And I am also convinced that the lifecycle script approach is far superior when implementing such a functionality.
Please check stuartleeks/dev-container-features#16
I agree, I'm also not sure if adding a
This seems to require password-less |
Isn't that irrelevant whether or not lifecycle scripts are used? We don't know the permissions of a mounted volume until it is mounted, do we? |
…_common-utils_integration
|
Hi @chrmarti , Further changes done to implement a new test case for bash history retention logic. Would you kindly review the changes & provide comments on the same. With Regards, |
|
One issue with the change is that it unconditionally adds mount points independent of whether preserving the shell history is enabled or not. Given that the
I suggest we put this on hold for now. |
Ref: #1026
Feature
Description
common-utilsfeature as a configurable optionchangelog
devcontainer-feature.jsonfile, added boolean optionallowShellHistoryand mounts as a configurable optionmain.shincommon-utilsfeatures srcscenariosto test this new featureallow_shell_history.shfileChecklist