[pkgsite] internal/source: clean up redundancies and typos after CL 708175

1 view
Skip to first unread message

Hyang-Ah Hana Kim (Gerrit)

unread,
1:24 PM (10 hours ago) 1:24 PM
to goph...@pubsubhelper.golang.org, Hyang-Ah Hana Kim, golang-co...@googlegroups.com

Hyang-Ah Hana Kim has uploaded the change for review

Commit message

internal/source: clean up redundancies and typos after CL 708175

Remove redundant assignment of repoSubdir and redundant break in
switch statement in internal/source/meta-tags.go.
Fix typos in comments ("minium" -> "minimum").
Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2

Change diff

diff --git a/internal/source/meta-tags.go b/internal/source/meta-tags.go
index d1c271e..cc32064 100644
--- a/internal/source/meta-tags.go
+++ b/internal/source/meta-tags.go
@@ -102,10 +102,9 @@
repoSubdir := ""
switch len(fields) {
case 3:
- // go-import meta tag support minium 3 fields (root-path vcs repo-url).
- break // good to proceed
+ // go-import meta tag support minimum 3 fields (root-path vcs repo-url).
case 4:
- // go-import meta tag support minium 3 fields (root-path vcs repo-url), and additionally "subdirectory" field since Go 1.25.
+ // go-import meta tag support minimum 3 fields (root-path vcs repo-url), and additionally "subdirectory" field since Go 1.25.
repoSubdir = fields[3]
default:
errorMessage = "go-import meta tag content attribute does not have three or four fields"
@@ -149,7 +148,6 @@
break metaScan
}
repoURL = sm.repoURL
- repoSubdir = sm.repoSubdir
}
sm = &sourceMeta{
repoRootPrefix: repoRootPrefix,

Change information

Files:
  • M internal/source/meta-tags.go
Change size: XS
Delta: 1 file changed, 2 insertions(+), 4 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
  • requirement is not satisfiedkokoro-CI-Passes
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: pkgsite
Gerrit-Branch: master
Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
Gerrit-Change-Number: 776840
Gerrit-PatchSet: 1
Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Nicholas Husin (Gerrit)

unread,
1:49 PM (9 hours ago) 1:49 PM
to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, kokoro, golang-co...@googlegroups.com
Attention needed from Hyang-Ah Hana Kim

Nicholas Husin voted and added 2 comments

Votes added by Nicholas Husin

Code-Review+2

2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Nicholas Husin . resolved

Thanks!

File internal/source/meta-tags.go
Line 105, Patchset 1 (Latest): // go-import meta tag support minimum 3 fields (root-path vcs repo-url).
Nicholas Husin . unresolved

Should be `supports` I think. Maybe `supports a minimum of 3 fields` would read clearer too.

Same below.

Open in Gerrit

Related details

Attention is currently required from:
  • Hyang-Ah Hana Kim
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement satisfiedTryBots-Pass
  • requirement is not satisfiedkokoro-CI-Passes
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pkgsite
Gerrit-Branch: master
Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
Gerrit-Change-Number: 776840
Gerrit-PatchSet: 1
Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
Gerrit-CC: kokoro <noreply...@google.com>
Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Comment-Date: Mon, 11 May 2026 17:49:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Nicholas Husin (Gerrit)

unread,
1:49 PM (9 hours ago) 1:49 PM
to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, Nicholas Husin, golang...@luci-project-accounts.iam.gserviceaccount.com, kokoro, golang-co...@googlegroups.com
Attention needed from Hyang-Ah Hana Kim

Nicholas Husin voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Hyang-Ah Hana Kim
Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    • requirement satisfiedTryBots-Pass
    • requirement is not satisfiedkokoro-CI-Passes
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pkgsite
    Gerrit-Branch: master
    Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
    Gerrit-Change-Number: 776840
    Gerrit-PatchSet: 1
    Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
    Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
    Gerrit-CC: kokoro <noreply...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Mon, 11 May 2026 17:49:27 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    kokoro (Gerrit)

    unread,
    1:56 PM (9 hours ago) 1:56 PM
    to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, Nicholas Husin, Nicholas Husin, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com
    Attention needed from Hyang-Ah Hana Kim

    kokoro voted kokoro-CI+1

    Kokoro presubmit build finished with status: SUCCESS
    Logs at: https://source.cloud.google.com/results/invocations/690632b6-cea4-417d-b482-6a0aead27bd6

    kokoro-CI+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hyang-Ah Hana Kim
    Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      • requirement satisfiedkokoro-CI-Passes
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: pkgsite
      Gerrit-Branch: master
      Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
      Gerrit-Change-Number: 776840
      Gerrit-PatchSet: 1
      Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
      Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
      Gerrit-Reviewer: kokoro <noreply...@google.com>
      Gerrit-CC: kokoro <noreply...@google.com>
      Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Comment-Date: Mon, 11 May 2026 17:56:09 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Hyang-Ah Hana Kim (Gerrit)

      unread,
      2:42 PM (8 hours ago) 2:42 PM
      to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
      Attention needed from Hyang-Ah Hana Kim

      Hyang-Ah Hana Kim uploaded new patchset

      Hyang-Ah Hana Kim uploaded patch set #3 to this change.
      Following approvals got outdated and were removed:
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hyang-Ah Hana Kim
      Submit Requirements:
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        • requirement is not satisfiedTryBots-Pass
        • requirement is not satisfiedkokoro-CI-Passes
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: newpatchset
        Gerrit-Project: pkgsite
        Gerrit-Branch: master
        Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
        Gerrit-Change-Number: 776840
        Gerrit-PatchSet: 3
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Hyang-Ah Hana Kim (Gerrit)

        unread,
        3:14 PM (8 hours ago) 3:14 PM
        to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, kokoro, Nicholas Husin, Nicholas Husin, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

        Hyang-Ah Hana Kim voted and added 1 comment

        Votes added by Hyang-Ah Hana Kim

        Auto-Submit+1
        Commit-Queue+1

        1 comment

        File internal/source/meta-tags.go
        Line 105, Patchset 1: // go-import meta tag support minimum 3 fields (root-path vcs repo-url).
        Nicholas Husin . resolved

        Should be `supports` I think. Maybe `supports a minimum of 3 fields` would read clearer too.

        Same below.

        Hyang-Ah Hana Kim

        Done

        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        • requirement is not satisfiedTryBots-Pass
        • requirement is not satisfiedkokoro-CI-Passes
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: pkgsite
        Gerrit-Branch: master
        Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
        Gerrit-Change-Number: 776840
        Gerrit-PatchSet: 3
        Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
        Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
        Gerrit-Reviewer: kokoro <noreply...@google.com>
        Gerrit-CC: kokoro <noreply...@google.com>
        Gerrit-Comment-Date: Mon, 11 May 2026 19:14:20 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Nicholas Husin <n...@golang.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        kokoro (Gerrit)

        unread,
        3:44 PM (7 hours ago) 3:44 PM
        to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Nicholas Husin, Nicholas Husin, golang-co...@googlegroups.com
        Attention needed from Hyang-Ah Hana Kim

        kokoro voted kokoro-CI+1

        Kokoro presubmit build finished with status: SUCCESS

        Attention is currently required from:
        • Hyang-Ah Hana Kim
        Submit Requirements:
          • requirement satisfiedCode-Review
          • requirement satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          • requirement is not satisfiedTryBots-Pass
          • requirement satisfiedkokoro-CI-Passes
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: pkgsite
          Gerrit-Branch: master
          Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
          Gerrit-Change-Number: 776840
          Gerrit-PatchSet: 3
          Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
          Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
          Gerrit-Reviewer: kokoro <noreply...@google.com>
          Gerrit-CC: kokoro <noreply...@google.com>
          Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Comment-Date: Mon, 11 May 2026 19:44:31 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Hyang-Ah Hana Kim (Gerrit)

          unread,
          4:43 PM (6 hours ago) 4:43 PM
          to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, kokoro, golang...@luci-project-accounts.iam.gserviceaccount.com, Nicholas Husin, Nicholas Husin, golang-co...@googlegroups.com

          Hyang-Ah Hana Kim voted Commit-Queue+1

          Commit-Queue+1
          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
          • requirement satisfiedCode-Review
          • requirement satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          • requirement is not satisfiedTryBots-Pass
          • requirement satisfiedkokoro-CI-Passes
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: pkgsite
          Gerrit-Branch: master
          Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
          Gerrit-Change-Number: 776840
          Gerrit-PatchSet: 3
          Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
          Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
          Gerrit-Reviewer: kokoro <noreply...@google.com>
          Gerrit-CC: kokoro <noreply...@google.com>
          Gerrit-Comment-Date: Mon, 11 May 2026 20:43:27 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Hyang-Ah Hana Kim (Gerrit)

          unread,
          4:43 PM (6 hours ago) 4:43 PM
          to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, kokoro, golang...@luci-project-accounts.iam.gserviceaccount.com, Nicholas Husin, Nicholas Husin, golang-co...@googlegroups.com

          Hyang-Ah Hana Kim removed a vote from this change

          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
          • requirement satisfiedCode-Review
          • requirement satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          • requirement is not satisfiedTryBots-Pass
          • requirement satisfiedkokoro-CI-Passes
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: deleteVote
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Gopher Robot (Gerrit)

          unread,
          4:59 PM (6 hours ago) 4:59 PM
          to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, kokoro, golang...@luci-project-accounts.iam.gserviceaccount.com, Nicholas Husin, Nicholas Husin, golang-co...@googlegroups.com

          Gopher Robot submitted the change with unreviewed changes

          Unreviewed changes

          1 is the latest approved patch-set.
          The change was submitted with unreviewed changes in the following files:

          ```
          The name of the file: internal/source/meta-tags.go
          Insertions: 2, Deletions: 2.

          @@ -102,9 +102,9 @@

          repoSubdir := ""
          switch len(fields) {
          case 3:
          -					// go-import meta tag support minimum 3 fields (root-path vcs repo-url).
          + // go-import meta tag supports a minimum of 3 fields (root-path vcs repo-url).
          case 4:
          - // go-import meta tag support minimum 3 fields (root-path vcs repo-url), and additionally "subdirectory" field since Go 1.25.
          + // go-import meta tag supports a minimum of 3 fields (root-path vcs repo-url), and additionally "subdirectory" field since Go 1.25.

          repoSubdir = fields[3]
          default:
          errorMessage = "go-import meta tag content attribute does not have three or four fields"
          ```

          Change information

          Commit message:
          internal/source: clean up redundancies and typos after CL 708175

          Remove redundant assignment of repoSubdir and redundant break in
          switch statement in internal/source/meta-tags.go.
          Fix typos in comments ("minium" -> "minimum").
          Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
          Files:
          • M internal/source/meta-tags.go
          Change size: XS
          Delta: 1 file changed, 2 insertions(+), 4 deletions(-)
          Branch: refs/heads/master
          Submit Requirements:
          Open in Gerrit
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: merged
          Gerrit-Project: pkgsite
          Gerrit-Branch: master
          Gerrit-Change-Id: I24e413c3942f5af50dfeec594b96b680b04ff7e2
          Gerrit-Change-Number: 776840
          Gerrit-PatchSet: 4
          Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Reviewer: Gopher Robot <go...@golang.org>
          open
          diffy
          satisfied_requirement
          Reply all
          Reply to author
          Forward
          0 new messages