Skip to content

answer build --output with relative path doesn't work #1285

Closed
@davispuh

Description

@davispuh

Describe the bug

Using answer build --output name option binary is not actually created.

To Reproduce

Download and unpack https://github.com/apache/answer/releases/download/v1.4.2/apache-answer-1.4.2-bin-linux-amd64.tar.gz

$ ./answer build --output myanswer --with github.com/apache/answer-plugins/connector-basic
try to build a new answer with plugins:
[...]
[go build -ldflags -X github.com/apache/answer/cmd.Version=1.4.2 -X github.com/apache/answer/cmd.Revision=0fd7e81 -X github.com/apache/answer/cmd.Time=2025-02-06T08:31:57Z -o myanswer .]
build new answer successfully myanswer
$ ls -la
// there is no `myanswer`

If I don't specify --output parameter or if I specify full path --output /tmp/myanswer then it works.

Expected behavior

myanswer to exist

Platform

  • Device: Desktop
  • OS: Arch Linux
  • Browser and version: N/A
  • Version: 1.4.2 (revision: 0fd7e81)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions