Skip to content

Commit

Permalink
Move tag fetch utils to cmd/internal package
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweig committed Feb 5, 2020
1 parent 0958b85 commit 956e101
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package updatecheck
package internal

import (
"encoding/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package updatecheck
package internal

import (
"net/http"
Expand Down
3 changes: 1 addition & 2 deletions cmd/krew/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"sigs.k8s.io/krew/internal/installation/receipt"
"sigs.k8s.io/krew/internal/installation/semver"
"sigs.k8s.io/krew/internal/receiptsmigration"
"sigs.k8s.io/krew/internal/updatecheck"
"sigs.k8s.io/krew/internal/version"
"sigs.k8s.io/krew/pkg/constants"
)
Expand Down Expand Up @@ -121,7 +120,7 @@ func preRun(cmd *cobra.Command, _ []string) error {
return
}
var err error
latestTag, err = updatecheck.FetchLatestTag()
latestTag, err = internal.FetchLatestTag()
if err != nil {
klog.V(1).Infoln("WARNING:", err)
}
Expand Down

0 comments on commit 956e101

Please sign in to comment.