From 3b379a13710cae2adc56131af1069e6fb92976b8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 9 May 2024 18:58:14 +0200 Subject: style: reformat with golines and enforce on commit --- internal/importer/channel.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'internal/importer/channel.go') 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) -- cgit 1.4.1