Panfactum / stack

The Panfactum Stack
https://panfactum.com
Other
16 stars 5 forks source link

[Bug]: Devenv set up does not build when making small changes to devenv.nix #26

Closed jlevydev closed 6 months ago

jlevydev commented 6 months ago

Prior Search

What happened?

We are adding some custom utilities to our devenv set up. When we do so it requires reloading the shell often. However when we make small modifications we get the error seen below. I had just replaced a different custom module with the get-buildkit-address module, so the difference between the two files was only around the name. I suspect a caching issue but maybe something else. I have already tried deleting my .direnv and .devenv directories and neither has worked to resolve.

Screenshot from 2024-05-07 10-19-33

{ pkgs, config, inputs, ... }: 
let
  customModule = module: import ./packages/nix/${module} { pkgs = pkgs; };

  custom_packages = with pkgs; [
    (customModule "docker-credential-aws")
    (customModule "local-build")
    (customModule "sf")
    (customModule "get-buildkit-address")
    (customModule "enter-shell")
  ];
in
{
  enterShell = ''source enter-shell'';
  env = {
    PF_REPO_NAME = "hudsonts";
    PF_REPO_URL = "github.com/Hudson-Technology-Systems/hudsonts";
    PF_REPO_PRIMARY_BRANCH = "main";
    PF_ENVIRONMENTS_DIR = "environments";
    PF_IAC_DIR = "packages/terraform";
  };

  packages = custom_packages;
}

Version

main (development branch)

What primary components of the stack are you seeing the problem on?

nix

Relevant log output

No response

Code of Conduct

fullykubed commented 6 months ago

@jlevydev Just want to quick confirm if you followed the debugging steps here and are still experiencing the issue.

fullykubed commented 6 months ago

@jlevydev Closing this issue as resolved. Please feel free to reopen it if you are still experiencing issues.