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

Remove -E from find command as it is not supported by GNU find #357

Merged
merged 5 commits into from Mar 8, 2018
Merged

Remove -E from find command as it is not supported by GNU find #357

merged 5 commits into from Mar 8, 2018

Conversation

ankushagarwal
Copy link
Contributor

@ankushagarwal ankushagarwal commented Mar 5, 2018

BSD find BRE does not support alteration operator, so using
two find commands instead of one.

Tested on OSX and Ubuntu

Fixes #345


This change is Reviewable

BSD find BRE does not support alteration operator, so using
two find commands instead of one.
@@ -18,10 +18,22 @@
# Assumes jsonnet is on the path.
set -ex

script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Copy link
Contributor

Choose a reason for hiding this comment

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

What does script_dir end up being set to? Why isn't using pwd sufficient?

I think we want to use the current working directory because we want to be able to use this script to format jsonnet files in other repositories.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

script_dir is the directory in which autoformat_jsonnet.sh lives.

pwd also works fine - the reason I made this change was to support calling autoformat_jsonnet.sh from any directory. The result would be same whether the script was executed from the root directory of the repo or the scripts/ directory of the repo.

I can change it back to pwd if you prefer.

@jlewi
Copy link
Contributor

jlewi commented Mar 8, 2018

/lgtm

Looks like it got of sync. Once you resolve conflicts you can just "/approve" it yourself.

@jlewi
Copy link
Contributor

jlewi commented Mar 8, 2018

/hold

@jlewi
Copy link
Contributor

jlewi commented Mar 8, 2018

/unapprove

@jlewi
Copy link
Contributor

jlewi commented Mar 8, 2018

/approve cancel

@k8s-ci-robot k8s-ci-robot removed the lgtm label Mar 8, 2018
@ankushagarwal
Copy link
Contributor Author

/retest

@jlewi
Copy link
Contributor

jlewi commented Mar 8, 2018

/approve

@jlewi
Copy link
Contributor

jlewi commented Mar 8, 2018

/hold cancel

@jlewi
Copy link
Contributor

jlewi commented Mar 8, 2018

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlewi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 2d9d98a into kubeflow:master Mar 8, 2018
@ankushagarwal ankushagarwal deleted the fix_autoformat branch March 9, 2018 23:18
yanniszark pushed a commit to arrikto/kubeflow that referenced this pull request Nov 1, 2019
elenzio9 pushed a commit to arrikto/kubeflow that referenced this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants