Skip to content

macos gsed support #252

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

macos gsed support #252

wants to merge 1 commit into from

Conversation

kaovilai
Copy link
Member

@kaovilai kaovilai commented Mar 5, 2025

Signed-off-by: Tiger Kaovilai tkaovila@redhat.com

Why the changes were made

❯ OADP_OPERATOR_PATH=../../oadp-operator make update-velero-manifests 
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/go.mod'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_backups.yaml'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_backupstoragelocations.yaml'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_datadownloads.yaml'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_datauploads.yaml'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_deletebackuprequests.yaml'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_downloadrequests.yaml'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_podvolumebackups.yaml'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_podvolumerestores.yaml'
sed: 1: "/Users/tiger/git/oadp-n ...": undefined label 'iger/git/oadp-non-admin/hack/extra-crds/velero.io_restores.yaml'
make: *** [update-velero-manifests] Error 1

How to test the changes made

make update-velero-manifests

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
@openshift-ci openshift-ci bot requested review from mrnold and sseago March 5, 2025 15:29
@openshift-ci openshift-ci bot added the approved label Mar 5, 2025
Copy link

openshift-ci bot commented Mar 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaovilai, shubham-pampattiwar

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:
  • OWNERS [kaovilai,shubham-pampattiwar]

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


# Codecov OS String for use in download url
ifeq ($(OS),Windows_NT)
OS_String = windows
Copy link
Contributor

Choose a reason for hiding this comment

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

OS_String is used?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was used for codecov in oadp
https://github.com/openshift/oadp-operator/blob/14827fa839dce3ef68dbe63970588dfcf66d1aca/Makefile#L355
No not used here yet. Could be used later.

@kaovilai
Copy link
Member Author

I have converted to the dark side by modifying path. @shubham-pampattiwar lmk if you still want this.

❯ brew info gnu-sed
==> gnu-sed: stable 4.9 (bottled)
....
==> Caveats
GNU "sed" has been installed as "gsed".
If you need to use it as "sed", you can add a "gnubin" directory
to your PATH from your bashrc like:

    PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kaovilai
Copy link
Member Author

before path change

❯ which sed
/usr/bin/sed

after

❯ which sed
/opt/homebrew/opt/gnu-sed/libexec/gnubin/sed

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.

4 participants