goharbor / goharbor/harbor-cli

[bug]: wrong Go package declarations in 6 view files from copy-paste errors

Open
#1,037 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
163
Forks
211
Avg merge
1m
Merged PRs (30d)
1

Description

## Description
Six view files have incorrect Go package declarations that don't match their actual directory location. These are copy-paste leftovers — when the files were created from existing ones, the package line was never updated.

## Steps to Reproduce
Just inspect the package declaration in each file:

1. pkg/views/artifact/select/view.go — package registry (should be artifact)
2. pkg/views/artifact/tags/select/view.go — package registry (should be tags)
3. pkg/views/repository/select/view.go — package project (should be repository)
4. pkg/views/webhook/select/view.go — package project (should be webhook)
5. pkg/views/label/select/view.go — package delete (should be label)
6. pkg/views/replication/task/list/view.go — package view (should be list)

## Expected Behavior
Each file should declare a package matching its directory, following Go convention.

## Actual Behavior
They declare stale names from wherever they were originally copied.

## Additional Context
All imports use explicit aliases (aview, tview, repoView, etc.), so fixing these won't break anything. PR #1001 has the fix ready.

Contributor guide

Open the contributing guide

Research direction

Inspect the six listed view.go files under pkg/views and compare each package declaration with its directory name. Update the stale declarations to the names specified in the issue; done means all six files match their directories without changing the aliased imports.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.