diff options
author | Alan Pearce | 2024-05-09 18:58:14 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-09 19:28:15 +0200 |
commit | 3b379a13710cae2adc56131af1069e6fb92976b8 (patch) | |
tree | d7801226ac84e201c6eea11a04941b1137adc78f /internal/importer/channel.go | |
parent | 0986e8699e87addccbef43c0ce30a466988fed15 (diff) | |
download | searchix-3b379a13710cae2adc56131af1069e6fb92976b8.tar.lz searchix-3b379a13710cae2adc56131af1069e6fb92976b8.tar.zst searchix-3b379a13710cae2adc56131af1069e6fb92976b8.zip |
style: reformat with golines and enforce on commit
Diffstat (limited to 'internal/importer/channel.go')
-rw-r--r-- | internal/importer/channel.go | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/internal/importer/channel.go b/internal/importer/channel.go index 4d051cc..b75839b 100644 --- a/internal/importer/channel.go +++ b/internal/importer/channel.go @@ -55,10 +55,22 @@ func (i *ChannelImporter) FetchIfNeeded(parent context.Context) (bool, error) { i.Logger.Debug("nix-build", "output", strings.TrimSpace(string(out))) outPath := path.Join(dest, i.Source.OutputPath) - i.Logger.Debug("checking output path", "outputPath", outPath, "dest", dest, "source", i.Source.OutputPath) + i.Logger.Debug( + "checking output path", + "outputPath", + outPath, + "dest", + dest, + "source", + i.Source.OutputPath, + ) after, err := os.Readlink(dest) if err := file.NeedNotExist(err); err != nil { - return false, errors.WithMessagef(err, "failed to stat output file from nix-build, filename: %s", outPath) + return false, errors.WithMessagef( + err, + "failed to stat output file from nix-build, filename: %s", + outPath, + ) } i.Logger.Debug("stat after", "name", after) |