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

Makefile not changed #240

Open
Astranix593 opened this issue Sep 17, 2024 · 8 comments
Open

Makefile not changed #240

Astranix593 opened this issue Sep 17, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@Astranix593
Copy link
Contributor

in the most recent commit you changed the directory where the go file for platypus and termite are located, this was not properly reflected in the makefile, so it's using the wrong paths

@WangYihang
Copy link
Owner

Thanks for reporting, I will check it out as soon as possible.

@WangYihang
Copy link
Owner

I am considering to move to GoReleaser instead of Makefile. GoReleaser is a modern GoLang distribuition tool for better performance and CI/CD pipeline friendly.

@WangYihang
Copy link
Owner

In the next few releases, I will fix the Dockerfile and the docker compose files. Thanks again for reporting this issue.

@WangYihang WangYihang self-assigned this Sep 17, 2024
@WangYihang WangYihang added the bug Something isn't working label Sep 17, 2024
@WangYihang
Copy link
Owner

$ go install github.com/goreleaser/goreleaser/v2@latest
$ goreleaser build --snapshot --clean
$ ls ./dist/ | grep agent
platypus-agent_darwin_amd64_v1
platypus-agent_darwin_arm64
platypus-agent_dragonfly_amd64_v1
platypus-agent_freebsd_386
platypus-agent_freebsd_arm_6
platypus-agent_freebsd_arm64
platypus-agent_linux_386
platypus-agent_linux_amd64_v1
platypus-agent_linux_arm_6
platypus-agent_linux_arm64
platypus-agent_linux_loong64
platypus-agent_linux_mips64_hardfloat
platypus-agent_linux_mips64le_hardfloat
platypus-agent_linux_mips_hardfloat
platypus-agent_linux_mipsle_hardfloat
platypus-agent_linux_ppc64
platypus-agent_linux_ppc64le
platypus-agent_linux_riscv64
platypus-agent_linux_s390x
platypus-agent_netbsd_386
platypus-agent_netbsd_amd64_v1
platypus-agent_netbsd_arm_6
platypus-agent_netbsd_arm64
platypus-agent_openbsd_amd64_v1
platypus-agent_openbsd_arm_6
platypus-agent_openbsd_arm64
platypus-agent_solaris_amd64_v1
platypus-agent_windows_386
platypus-agent_windows_amd64_v1
platypus-agent_windows_arm_6
platypus-agent_windows_arm64
$ ./dist/platypus-agent_linux_amd64_v1/platypus-agent          
the required flags `-h, --host', `-p, --port' and `-t, --token' were not specified

$ ./dist/platypus-agent_linux_amd64_v1/platypus-agent --version
{"commit":"bacb8aad79a94af83bf6a7b3c132d3ea5e7ba673","date":"2024-09-17T20:05:17Z","version":"1.5.1-SNAPSHOT-bacb8aa"}                                           

$ ./dist/platypus-agent_linux_amd64_v1/platypus-agent --help   
Usage:
  platypus-agent [OPTIONS]

Application Options:
  -h, --host=                                Remote host
  -p, --port=                                Remote port
  -t, --token=                               API token
  -e, --env=[development|staging|production] Environment (default: production)
  -v, --version                              Print version information and exit

Help Options:
  -h, --help                                 Show this help message

$ ./dist/platypus-agent_linux_amd64_v1/platypus-agent --host 1.2.3.4 --port 13337 --token dummy-token
[Fx] PROVIDE    fx.Lifecycle <= go.uber.org/fx.New.func1()
[Fx] PROVIDE    fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm()
[Fx] PROVIDE    fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm()
[Fx] PROVIDE    *zap.Logger <= main.main.InitLogger.func3()
[Fx] INVOKE             main.main.func1()
[Fx] RUN        provide: go.uber.org/fx.New.func1()
[Fx] RUN        provide: main.main.InitLogger.func3()
[Fx] INVOKE             main.main.func2()
2024-09-18T04:08:12.762+0800    INFO    platypus-agent/main.go:771      starting application
2024-09-18T04:08:12.762+0800    INFO    platypus-agent/main.go:774      connecting to server    {"endpoint": "1.2.3.4:13337"}

@D3vil0p3r
Copy link

@WangYihang I built from source the latest commit where three binaries are generated:

platypus-admin
platypus-agent
platypus-server

But it is not clear how to use them. When I run platypus-admin there is no output. platypus-server, when run, not clear on which port is exposed.

It is not clear how to use these 3 binaries. Can you please explain briefly here and document them?

@WangYihang
Copy link
Owner

Thanks for reporting, I will fix that soon.

The main branch is under development in the last few days, maybe some breaking changes were introduced.

@D3vil0p3r
Copy link

Is there an ETA for it?

@WangYihang
Copy link
Owner

I think the changes should be completed before the end of this year.

Thanks for your support of this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants