(pkg string, outputs []Output)
| 232 | } |
| 233 | |
| 234 | func (f *File) SetOutputsForPackage(pkg string, outputs []Output) error { |
| 235 | p, err := f.Resolve(pkg) |
| 236 | if err != nil { |
| 237 | return err |
| 238 | } |
| 239 | if p.Systems == nil { |
| 240 | p.Systems = map[string]*SystemInfo{} |
| 241 | } |
| 242 | if p.Systems[nix.System()] == nil { |
| 243 | p.Systems[nix.System()] = &SystemInfo{} |
| 244 | } |
| 245 | p.Systems[nix.System()].Outputs = outputs |
| 246 | return f.Save() |
| 247 | } |
| 248 | |
| 249 | func (f *File) isDirty() (bool, error) { |
| 250 | currentHash, err := cachehash.JSON(f) |
no test coverage detected