Page MenuHomePhabricator

[Direnv] Use nix-direnv if possible
ClosedPublic

Authored by jon on Jan 19 2023, 10:47 AM.
Tags
None
Referenced Files
F3490132: D6311.diff
Wed, Dec 18, 3:08 PM
Unknown Object (File)
Tue, Dec 17, 6:49 AM
Unknown Object (File)
Tue, Dec 17, 6:49 AM
Unknown Object (File)
Tue, Dec 17, 6:48 AM
Unknown Object (File)
Tue, Dec 17, 6:47 AM
Unknown Object (File)
Nov 18 2024, 8:27 AM
Unknown Object (File)
Nov 10 2024, 10:02 AM
Unknown Object (File)
Oct 29 2024, 11:21 PM
Subscribers

Details

Summary

nix-direnv has better amoritorized costs for initiating a shell.

Part of https://linear.app/comm/issue/ENG-2751

Test Plan

Install direnv, script being added in later diff

direnv allow .
cd ..
cd comm
# might be slow on first execution

cd ..
cd comm
# all following executions of direnv should be relatively fast

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat added 1 blocking reviewer(s): atul.

Will let @atul do the final accept since he's the one having issues – curious if it resolves them

Yup, things are snappier now (specifically the first time the directory is cd'd into after a change has been made in the working copy)

This revision is now accepted and ready to land.Jan 19 2023, 9:37 PM
This revision was automatically updated to reflect the committed changes.