Skip to content

Commit c88be12

Browse files
committed
checkpoint
1 parent 88af418 commit c88be12

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

language/starlarkbundle/language.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func (ext *starlarkBundleLang) getModuleDependencyRepoName(repo string) (string,
253253
return mappedRepo, true
254254
} else {
255255
ext.logf(" unknown module dependency: %q (known deps: %v)", repo, ext.moduleDeps)
256-
log.Fatalf("unknown module dependency: %q", repo)
256+
// log.Fatalf("unknown module dependency: %q", repo)
257257
return repo, false
258258
}
259259
}

language/starlarkbundle/starlark_bundle.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333

3434
const (
3535
starlarkBundleKind = "starlark_bundle"
36+
starlarkBundleName = "docs"
3637
)
3738

3839
var starlarkBundleKindInfo = map[string]rule.KindInfo{
@@ -48,7 +49,7 @@ var starlarkBundleLoadInfo = rule.LoadInfo{
4849
}
4950

5051
func starlarkBundleRule() (*rule.Rule, []string) {
51-
r := rule.NewRule(starlarkBundleKind, starlarkBundleKind)
52+
r := rule.NewRule(starlarkBundleKind, starlarkBundleName)
5253

5354
r.SetAttr("visibility", []string{"//visibility:public"})
5455

language/starlarkbundle/starlark_library.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,6 @@ func checkInternalVisibility(rel, visibility string) string {
367367
return visibility
368368
}
369369

370-
func sanitizeName(name string) string {
371-
name = strings.ReplaceAll(name, "/", "_")
372-
name = strings.ReplaceAll(name, "+", "_")
373-
return name
374-
}
375-
376370
// deduplicateAndSort removes duplicate entries and sorts the list
377371
func deduplicateAndSort(in []string) (out []string) {
378372
if len(in) == 0 {

0 commit comments

Comments
 (0)