⛩️ Powerful yet Minimal Nix Dependency Manager
flake flakes home-manager nixos go nix dependency dependencies
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(yae): force add flag

Fuwn ca83865c 61beb1c0

+12
+12
yae.go
··· 101 101 Name: "pin", 102 102 Usage: "Prevent the source from being updated", 103 103 }, 104 + &cli.BoolFlag{ 105 + Name: "force", 106 + Usage: "Always force update the source, regardless of unchanged remote tag", 107 + }, 104 108 }, 105 109 Action: func(c *cli.Context) error { 106 110 if c.Args().Len() != 2 { ··· 138 142 139 143 if c.Bool("pin") { 140 144 source.Pinned = true 145 + } 146 + 147 + if c.Bool("force") { 148 + if source.Pinned { 149 + return fmt.Errorf("cannot set a source to be statically forced and pinned at the same time") 150 + } 151 + 152 + source.Force = true 141 153 } 142 154 143 155 if sha256, err := fetchSHA256(source.URL, c.Bool("unpack"), !c.Bool("silent")); err != nil {