forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare tests for impending knative/pkg version bump
knative/pkg#2548 changes pkg/changeset.Get to read VCS information from information embedded by the Go compiler into built binaries, instead of relying on the convention that a kodata/HEAD symlink exists pointing to the repo's .git/HEAD, and a kodata/refs points to .git/refs. This fails in tests though, since tests don't stamp this information into the binary where it can be read. This change removes our tests' usage of changeset.Get and instead replaces those fake commit SHAs with more obviously placeholder values. It doesn't seem that the tests cared that it was an actual SHA, let along the actual current SHA, they just needed any value that looked like a SHA.
- Loading branch information
1 parent
85d5344
commit a1620c9
Showing
2 changed files
with
4 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters