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

Error when using Rust build pack. #25

Closed
kaaquist opened this issue Oct 5, 2020 · 1 comment
Closed

Error when using Rust build pack. #25

kaaquist opened this issue Oct 5, 2020 · 1 comment

Comments

@kaaquist
Copy link

kaaquist commented Oct 5, 2020

Trying to do a jx project import of a rust application.
The import goes well but I get an error when the pipeline tries to build, or copy the build.

Showing logs for build <github user>/<application name>/master #8 release stage from-build-pack and container step-build-copy-bin
cp: cannot stat '/tekton/home/.cargo/bin/REPLACE_ME_APP_NAME': No such file or directory
Pipeline failed on stage 'from-build-pack' : container 'step-build-copy-bin'. The execution of the pipeline has stopped. 

Error: cp: cannot stat '/tekton/home/.cargo/bin/REPLACE_ME_APP_NAME': No such file or directory
It seems there is missing some replacement of the REPLACE_ME_APP_NAME placeholder.

Line:

- sh: cp ~/.cargo/bin/REPLACE_ME_APP_NAME .

Not sure if I should override the line/part of the pipeline, or if this is just a "feature" that needs fixing?

I have created an override block and that did the trick.
From jenkins-x.yaml

buildPack: rust
pipelineConfig:
  pipelines:
    overrides:
      - name: copy-bin
        step: 
          sh: echo "hello you!"
          name: new-bogus-bin

But I guess a fix to the real problem would be great.

I can see that this here bug relates to Issue #18, where there are a fix in PR #20

@kaaquist
Copy link
Author

kaaquist commented Oct 8, 2020

After merge of PR #20 this here error can be closed. I will close the issue. Thanks @jstrachan for merging the PR.

@kaaquist kaaquist closed this as completed Oct 8, 2020
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

1 participant