mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +00:00
refactor(doctor): use sidecarassets package
This commit is contained in:
1 parent
b29d80d337
commit
9d382d0fd2
1 file changed
+3
-3
@@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
"github.com/chromedp/chromedp"
|
"github.com/chromedp/chromedp"
|
||||||
|
|
||||||
"github.com/priyanshujain/sanderling/internal/sidecar"
|
"github.com/priyanshujain/sanderling/internal/sidecarassets"
|
||||||
)
|
)
|
||||||
|
|
||||||
type doctorCheck struct {
|
type doctorCheck struct {
|
||||||
@@ -99,10 +99,10 @@ func checkChromiumLaunch(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkSidecarJAR(_ context.Context) error {
|
func checkSidecarJAR(_ context.Context) error {
|
||||||
if sidecar.IsPlaceholder() {
|
if sidecarassets.IsPlaceholder() {
|
||||||
return fmt.Errorf("placeholder JAR embedded; run `make sidecar && make sanderling` to embed the real fat JAR")
|
return fmt.Errorf("placeholder JAR embedded; run `make sidecar && make sanderling` to embed the real fat JAR")
|
||||||
}
|
}
|
||||||
if sidecar.EmbeddedSize() == 0 {
|
if sidecarassets.EmbeddedSize() == 0 {
|
||||||
return fmt.Errorf("embedded JAR is empty")
|
return fmt.Errorf("embedded JAR is empty")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user