File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,35 @@ describe('modules/manager/nix/extract', () => {
434
434
expect ( await extractPackageFile ( '' , 'flake.nix' ) ) . toBeNull ( ) ;
435
435
} ) ;
436
436
437
+ it ( 'includes nixpkgs but using indirect type and path locked type that cannot be updated' , async ( ) => {
438
+ const flakeLock = codeBlock `{
439
+ "nodes": {
440
+ "nixpkgs": {
441
+ "locked": {
442
+ "lastModified": 1687274257,
443
+ "narHash": "sha256-TutzPriQcZ8FghDhEolnHcYU2oHIG5XWF+/SUBNnAOE=",
444
+ "path": "/nix/store/22qgs3skscd9bmrxv9xv4q5d4wwm5ppx-source",
445
+ "rev": "2c9ecd1f0400076a4d6b2193ad468ff0a7e7fdc5",
446
+ "type": "path"
447
+ },
448
+ "original": {
449
+ "id": "nixpkgs",
450
+ "type": "indirect"
451
+ }
452
+ },
453
+ "root": {
454
+ "inputs": {
455
+ "nixpkgs": "nixpkgs"
456
+ }
457
+ }
458
+ },
459
+ "root": "root",
460
+ "version": 7
461
+ }` ;
462
+ fs . readLocalFile . mockResolvedValueOnce ( flakeLock ) ;
463
+ expect ( await extractPackageFile ( '' , 'flake.nix' ) ) . toBeNull ( ) ;
464
+ } ) ;
465
+
437
466
it ( 'includes flake from GitHub Enterprise' , async ( ) => {
438
467
const flakeLock = codeBlock `{
439
468
"nodes": {
You can’t perform that action at this time.
0 commit comments