Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: cipd/client/cipd/ensure/item_parsers.go

Issue 2651173003: [cipd] Move ValidateRoot to common package (Closed)
Patch Set: Add test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cipd/client/cipd/ensure/file.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cipd/client/cipd/ensure/item_parsers.go
diff --git a/cipd/client/cipd/ensure/item_parsers.go b/cipd/client/cipd/ensure/item_parsers.go
index 7e6c8ac2a190df504d0a2538dd7285865a049876..e4da252bd9db01117e08dfb0c72954ca21380045 100644
--- a/cipd/client/cipd/ensure/item_parsers.go
+++ b/cipd/client/cipd/ensure/item_parsers.go
@@ -7,6 +7,8 @@ package ensure
import (
"fmt"
"net/url"
+
+ "github.com/luci/luci-go/cipd/client/cipd/common"
)
// an itemParser should parse the value from `val`, and update s or
@@ -20,7 +22,7 @@ type itemParserState struct {
}
func rootParser(s *itemParserState, _ *File, val string) error {
- if err := ValidateRoot(val); err != nil {
+ if err := common.ValidateRoot(val); err != nil {
return err
}
s.curRoot = val
« no previous file with comments | « cipd/client/cipd/ensure/file.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698