aboutsummaryrefslogtreecommitdiff
path: root/internal/fetch/unit.go
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2024-01-17 14:10:26 -0500
committerMichael Matloob <matloob@golang.org>2024-01-23 15:28:52 +0000
commitc7eaeb891e256eea9575c5d1a33c3458161db86f (patch)
treecdde74bda5f4833f600fe1cd36cd5c5ad23b7cac /internal/fetch/unit.go
parent506adfeab1ce4a0423fcfd861f0fb728202831a8 (diff)
downloadgo-x-pkgsite-c7eaeb891e256eea9575c5d1a33c3458161db86f.tar.xz
internal: move UnitMeta.IsRedistributable to Unit
Change-Id: Ia0a18df32d752f20b0400b47860638c7d0910eb7 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/556435 Reviewed-by: Jonathan Amsterdam <jba@google.com> kokoro-CI: kokoro <noreply+kokoro@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'internal/fetch/unit.go')
-rw-r--r--internal/fetch/unit.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/fetch/unit.go b/internal/fetch/unit.go
index 237a7cc2..9963cdaa 100644
--- a/internal/fetch/unit.go
+++ b/internal/fetch/unit.go
@@ -49,11 +49,11 @@ func moduleUnits(modulePath string, minfo internal.ModuleInfo,
}
dir := &internal.Unit{
UnitMeta: internal.UnitMeta{
- ModuleInfo: minfo,
- Path: dirPath,
- IsRedistributable: isRedist,
+ ModuleInfo: minfo,
+ Path: dirPath,
},
- Licenses: meta,
+ Licenses: meta,
+ IsRedistributable: isRedist,
}
if r, ok := readmeLookup[dirPath]; ok {
dir.Readme = r