forked from moby/buildkit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vendor: replace github.com/pkg/browser with stubbed-out version
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information
Showing
16 changed files
with
75 additions
and
315 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module nobrowser | ||
|
||
go 1.18 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Package nobrowser stubs out github.com/pkg/browser | ||
// | ||
// See https://github.com/moby/buildkit/pull/3010#issuecomment-1226847222 | ||
package nobrowser | ||
|
||
import ( | ||
"fmt" | ||
"io" | ||
) | ||
|
||
// Stdout is the io.Writer to which executed commands write standard output. | ||
var Stdout io.Writer | ||
|
||
// Stderr is the io.Writer to which executed commands write standard error. | ||
var Stderr io.Writer | ||
|
||
// OpenFile opens new browser window for the file path. | ||
func OpenFile(path string) error { | ||
return fmt.Errorf("not implemented") | ||
} | ||
|
||
// OpenReader consumes the contents of r and presents the | ||
// results in a new browser window. | ||
func OpenReader(r io.Reader) error { | ||
return fmt.Errorf("not implemented") | ||
} | ||
|
||
// OpenURL opens a new browser window pointing to url. | ||
func OpenURL(url string) error { | ||
return fmt.Errorf("not implemented") | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.