Skip to content

Relative symlink for installed binary #158

Open
@UiP9AV6Y

Description

I am running bingo in a CI context, with the current working directory name being unpredictable (e.g. /builds/12345/90345/wd)

Im also pointing GOPATH to a location inside the CI
working directory for the purpose of caching. as a
result GOBIN also points to a path inside the working
directory.

I am setting up the build workspace using
bingo get -l and sharing the cached data between
CI jobs.

bingo creates the symlinks with absolute paths,
which makes them unusable in CI jobs other than the
one which ran bingo get -l, as the links point to
nonexistend locations
(e.g. /builds/12345/90345/wd/.cache/golang/bin something when the job working directory is /builds/12345/91112/wd)

As far as i am aware, relative symlinks are supported
on all OS bingo supports.

Is there any objection to creating the symbolic links
relative to the actual binary?
(e.g. instead of /go/bin/something -> /go/bin/something-1.2.3, create /go/bin/something -> something-1.2.3)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions