Page MenuHomePhabricator

[Nix] Add shellcheck to dev shell
ClosedPublic

Authored by jon on Aug 8 2022, 9:23 AM.
Tags
None
Referenced Files
F3299465: D4770.id15469.diff
Sun, Nov 17, 12:24 PM
Unknown Object (File)
Mon, Nov 11, 1:51 AM
Unknown Object (File)
Mon, Oct 28, 5:08 AM
Unknown Object (File)
Mon, Oct 28, 5:08 AM
Unknown Object (File)
Mon, Oct 28, 5:08 AM
Unknown Object (File)
Mon, Oct 28, 5:05 AM
Unknown Object (File)
Oct 6 2024, 1:10 PM
Unknown Object (File)
Oct 2 2024, 7:24 PM
Subscribers

Details

Summary

Allow for devs to run shellcheck from nix dev shell

Test Plan
# from any branch
nix develop 'github:commE2E/comm?ref=jonringer/add-shellcheck'
shellcheck --help
which shellcheck # should point to nix store

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Aug 8 2022, 9:25 AM
Harbormaster failed remote builds in B11211: Diff 15423!

added @ashoat as this is technically "adds" a (although an already approved) dependency.

Harbormaster returned this revision to the author for changes because remote builds failed.Aug 8 2022, 9:35 AM
Harbormaster failed remote builds in B11212: Diff 15424!

iOS build failed because of some intermittent network issue (I think on Buildkite's side w/ Agent API actually), kicked it off again

abosh added 2 blocking reviewer(s): atul, ashoat.

Looks good to me! Accepting, but adding @ashoat and @atul as blocking as this is adding a new dependency and want at least one of them to take a look at it.

Was able to test this locally and shellcheck worked as expected

This reminded me that our approach to make sure clang-format is accessible to lint-staged is an NPM package... probably a good idea to move that to Nix as well, @jon would you mind creating a task?

This revision is now accepted and ready to land.Aug 8 2022, 3:44 PM

This reminded me that our approach to make sure clang-format is accessible to lint-staged is an NPM package... probably a good idea to move that to Nix as well, @jon would you mind creating a task?

This is already accessible in the nix environment, because stdenv on mac brings in clang, and clang-format is one of the binaries/commands in the clang package

We still need a task to migrate though... probably just need to remove this line

This revision was automatically updated to reflect the committed changes.