Skip to content

go snapshotter/snapshotter: Remove colons from file names#10

Open
anubhav94 wants to merge 1 commit into
masterfrom
anubhav/fix_snapshotter_semicolons
Open

go snapshotter/snapshotter: Remove colons from file names#10
anubhav94 wants to merge 1 commit into
masterfrom
anubhav/fix_snapshotter_semicolons

Conversation

@anubhav94

Copy link
Copy Markdown

Colons make Bazel unhappy - let's remove them.

Colons make Bazel unhappy - let's remove them.
}
name := filepath.Join("testdata", strings.Replace(s.t.Name(), "/", "-", -1)+nameSuffix+".snapshots.json")
// Strip out all ":" as Bazel is unhappy with them.
name = strings.Replace(name, ":", "_", -1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we strip out anything that's not a valid bazel target name?

https://docs.bazel.build/versions/master/build-ref.html#name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants