Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running hiveview on windows fails to an error #903

Open
KillariDev opened this issue Oct 10, 2023 · 2 comments
Open

Running hiveview on windows fails to an error #903

KillariDev opened this issue Oct 10, 2023 · 2 comments

Comments

@KillariDev
Copy link

When I try to run hiveview, i am getting following error on windows. The directory is clearly an absolute path, so not sure what the error is about:

C:\projects\hive\cmd\hiveview>hiveview -serve -logdir C:/Users/killa/Downloads/workspace/
X [ERROR] The working directory "/" is not an absolute path

panic: The working directory "/" is not an absolute path

goroutine 1 [running]:
main.newBundler({0x17667e0?, 0xc0000a27e0}, {0xc0000e0280, 0x5, 0x5}, 0xc000116f00)
        C:/projects/hive/cmd/hiveview/esbuild.go:43 +0x205
main.hiveviewBundler(...)
        C:/projects/hive/cmd/hiveview/deploy.go:25
main.newDeployFS({0x17667e0?, 0xc0000a27e0}, 0xc0000cbf00)
        C:/projects/hive/cmd/hiveview/deploy.go:65 +0x105
main.runServer({{0x153cd29, 0xc}, {0xc0000c0060, 0x23}, {0x0, 0x0}, 0x0})
        C:/projects/hive/cmd/hiveview/serve.go:51 +0xd7
main.main()
        C:/projects/hive/cmd/hiveview/main.go:39 +0x3f6
@fjl
Copy link
Collaborator

fjl commented Oct 10, 2023

Sorry, hiveview is not ported to Windows right now.

@s1na
Copy link
Contributor

s1na commented Oct 11, 2023

In case someone needs a workaround you can run hiveview in a container. I have one built at https://hub.docker.com/r/sinamahmoodi/hiveview which I probably won't update. Here's the source. It assumes the test results are mounted to /workspace:

FROM golang:1-alpine as builder

COPY ./ /hive

WORKDIR /hive
RUN go build ./cmd/hiveview
RUN mv ./hiveview /usr/local/bin/hiveview

FROM alpine:latest
COPY --from=builder /usr/local/bin/hiveview /usr/local/bin/hiveview

EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/hiveview", "-serve", "-logdir", "/workspace"]

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

No branches or pull requests

3 participants