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

call stack in bash is hard to look at and overwhelming #6325

Closed
stevekuznetsov opened this issue Dec 15, 2015 · 2 comments
Closed

call stack in bash is hard to look at and overwhelming #6325

stevekuznetsov opened this issue Dec 15, 2015 · 2 comments

Comments

@stevekuznetsov
Copy link
Contributor

For instance, with a typo for hack/build-go.sh I get:

$ hack/build-go.sh cmd/k
++ Building go targets for linux/amd64: cmd/k
can't load package: package github.com/openshift/origin/cmd/k: cannot find package "github.com/openshift/origin/cmd/k" in any of:
    /usr/local/go/src/github.com/openshift/origin/cmd/k (from $GOROOT)
    /home/stevekuznetsov/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/cmd/k (from $GOPATH)
    /home/stevekuznetsov/go/src/github.com/openshift/origin/Godeps/_workspace/src/github.com/openshift/origin/cmd/k
!!! Error in hack/../hack/common.sh:144
    'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${binaries[@]}"' exited with status 1
Call stack:
    1: hack/../hack/common.sh:144 os::build::build_binaries(...)
    2: hack/build-go.sh:15 main(...)
Exiting with status 1
!!! Error in hack/../hack/common.sh:116
    '( os::build::setup_env; local version_ldflags; version_ldflags=$(os::build::ldflags); local goflags; eval "goflags=(${OS_GOFLAGS:-})"; local arg; for arg in "$@";
do
    if [[ "${arg}" == -* ]]; then
        goflags+=("${arg}");
    fi;
done; os::build::export_targets "$@"; local platform; for platform in "${platforms[@]}";
do
    os::build::set_platform_envs "${platform}"; echo "++ Building go targets for ${platform}:" "${targets[@]}"; go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${binaries[@]}"; os::build::unset_platform_envs "${platform}";
done )' exited with status 1
Call stack:
    1: hack/../hack/common.sh:116 os::build::build_binaries(...)
    2: hack/build-go.sh:15 main(...)
Exiting with status 1

There's so many lines of poorly formatted output it is difficult for my mind to parse what is going on and what happened. The call stack doesn't actually serve its purpose of being useful here.

@smarterclayton we need to rethink that feature

@smarterclayton
Copy link
Contributor

I've got 99 problems but this ain't one :)

On Tue, Dec 15, 2015 at 11:23 AM, Dan McPherson notifications@github.com
wrote:

Assigned #6325 #6325 to
@smarterclayton https://github.com/smarterclayton.


Reply to this email directly or view it on GitHub
#6325 (comment).

@stevekuznetsov
Copy link
Contributor Author

Fixed in #8527

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

No branches or pull requests

3 participants