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

Add shell-options parameter to use #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sugarshin
Copy link

@sugarshin sugarshin commented Jun 30, 2019

Hi, I added shell-options parameter. please review 🙏

Checklist

  • All new jobs, commands, executors, parameters have descriptions
  • Examples have been added for any significant new features
  • README has been updated, if necessary

Motivation, issues

Useful to be able to select shell options when running custom-logic.

Description

I added shell-options parameter to use. Default is /bin/bash -eo pipefail.

@@ -86,6 +86,7 @@ The `use` command also takes three optional parameters and one that is technical
| `attach-workspace` | `boolean` | `false` | Attach a workspace for this command to use? Useful when this orb's `reconstruct` job is called upstream in a given workflow |
| `workspace-root` | `string` | "." | Workspace root path (either an absolute path or a path relative to the working directory), defaults to "." (the working directory) |
| `custom-logic` | `string` | echo "What should COMMIT_RANGE ($COMMIT_RANGE) be used for?" | What should be done with the commit information created by the `reconstruct` command/job? [See examples in the orb registry](https://circleci.com/orbs/registry/orb/iynere/compare-url) (or [below](#examples)) |
| `shell-options` | `string` | /bin/bash -eo pipefail | The shell options for `custom-loginc`. Default is `/bin/bash -eo pipefail`. See the document for [using shell scripts](https://circleci.com/docs/2.0/using-shell-scripts/). |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom-loginc?

type: string
default: /bin/bash -eo pipefail
description: >
The shell options for `custom-loginc`. Default is `/bin/bash -eo pipefail`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom-loginc?

@xdays
Copy link

xdays commented Aug 29, 2019

@jpaskhay this PR will break yours, pipefail is set by default. my #39 can avoid it.

@jpaskhay
Copy link

@xdays these changes are part of the use command whereas the ancestor logic fix is in the reconstruct command. I believe those execute in separate subshells. I'm honestly good with either of our approaches to the fix, but I think technically this shouldn't cause conflicts

@jpaskhay
Copy link

Ultimately I think it should be up to the maintainer(s). Some of the other issues in the repo may lead to larger refractors that may make both of our patches moot anyway :)

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

Successfully merging this pull request may close these issues.

None yet

4 participants