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

squash commit #1129

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added contributors/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions contributors/arunagri82.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Arunkumar
github_user_name: arunagri82
url_of_github_issue: https://github.com/scaleracademy/scaler-open-source-september-challenge/issues/1010
your_favorite_programming_language: Javascript
profile-link: https://github.com/arunagri82/progress/blob/main/Arunkumar-Profile.html
---
Binary file added contributors/arunagri82/.DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions contributors/arunagri82/gist-solution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Gist Solutions

Here are my Gists for today's task:

- [Software Development Topic]https://gist.github.com/arunagri82/07bba82f022878456a646ec5447f47c2
- [Code Snippet]https://gist.github.com/arunagri82/b599d6cc15d4365e4cd9214768e8c50b#file-gist-solution-js
Empty file added hello.js
Empty file.
1 change: 1 addition & 0 deletions install-master/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Please fill out one of the templates on: https://github.com/Homebrew/install/issues/new/choose or we will close it without comment.
37 changes: 37 additions & 0 deletions install-master/.github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: New issue for Reproducible Bug
about: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate."

---

# Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

- [ ] your problem was from running the official `install` or `uninstall` script?
- [ ] after installation: ran `brew config` and `brew doctor` and included their output with your issue? If you couldn't install: provided your OS version with the output of your issue?

<!-- To help us debug your issue, please complete these sections: -->

## What you were trying to do (and why)

<!-- replace me -->

## What happened (include command output)

<!-- replace me -->

<details>
<summary>Command output</summary>
<pre>

<!-- replace this with the command output -->

</pre>
</details>

## What you expected to happen

<!-- replace me -->

## Step-by-step reproduction instructions (by running `brew` commands)

<!-- replace me -->
15 changes: 15 additions & 0 deletions install-master/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
blank_issues_enabled: false

contact_links:
- name: Get help in GitHub Discussions
url: https://github.com/Homebrew/discussions/discussions
about: Have a question? Not sure if your issue affects everyone reproducibly? The quickest way to get help is on Homebrew's GitHub Discussions!
- name: New issue on Homebrew/brew
url: https://github.com/Homebrew/brew/issues/new/choose
about: Having a `brew` problem that's not from a `brew install` or `brew upgrade` of a single formula/package?
- name: New issue on Homebrew/homebrew-core
url: https://github.com/Homebrew/homebrew-core/issues/new/choose
about: Having a `brew` problem with a `brew install` or `brew upgrade` of a single formula/package? Report it to Homebrew/homebrew-core (the core tap/repository).
- name: New issue on Homebrew/homebrew-cask
url: https://github.com/Homebrew/homebrew-cask/issues/new/choose
about: Having a `brew --cask` problem? Report it to Homebrew/homebrew-cask (the cask tap/repository).
6 changes: 6 additions & 0 deletions install-master/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
113 changes: 113 additions & 0 deletions install-master/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: CI
on:
push:
branches:
- master
pull_request:
permissions:
contents: read

jobs:
tests:
strategy:
matrix:
os:
- macOS-latest
- ubuntu-latest
- windows-latest
include:
- os: macOS-latest
shell: bash
- os: ubuntu-latest
shell: bash
- os: windows-latest
shell: "wsl-bash {0}"
runs-on: ${{matrix.os}}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- name: Set up WSL
if: runner.os == 'windows'
shell: powershell
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Set up Git repository
uses: actions/checkout@main

- name: Cleanup macOS
if: runner.os == 'macOS'
run: |
sudo rm -rf /Applications/Xcode.app \
/Library/Developer/CommandLineTools
sudo xcode-select --reset

- name: Install WSL
if: runner.os == 'windows'
uses: Vampire/setup-wsl@188b420ddc69713cdd990715aba161526aed7f6d
with:
distribution: Ubuntu-22.04
wsl-shell-user: runner
additional-packages: build-essential

- name: Check Bash 3.x syntax
if: runner.os == 'macOS'
run: |
/bin/bash -u -n install.sh
/bin/bash -u -O extglob -n uninstall.sh

- name: Set up Homebrew PATH
if: runner.os != 'windows'
run: |
if [[ "${{ runner.os }}" = "macOS" ]]
then
echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"
else
echo "/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"
fi

- name: Uninstall GitHub Actions Homebrew
run: |
if which brew &>/dev/null
then
/bin/bash uninstall.sh -n >/dev/null
/bin/bash uninstall.sh -f >/dev/null
fi

- name: Set up WSL environment
if: runner.os == 'windows'
shell: "wsl-bash -u root {0}"
run: |
echo "runner ALL=(ALL) NOPASSWD:ALL" | tee /etc/sudoers.d/runner
chmod 644 /etc/sudoers.d/runner
echo -e "#!/bin/bash\nexec /home/linuxbrew/.linuxbrew/bin/brew \"\$@\"" | tee /usr/local/bin/brew
chmod 755 /usr/local/bin/brew

- run: /bin/bash -c "$(cat install.sh)"

- run: brew config

- run: brew install ack

- run: /bin/bash uninstall.sh -f >/dev/null

- run: /bin/bash -c "$(cat install.sh)"

- name: Uninstall and reinstall with sudo NOPASSWD
if: runner.os == 'linux'
run: |
echo "${USER} ALL=(ALL) NOPASSWD:ALL" | sudo tee "/etc/sudoers.d/${USER}"
/bin/bash uninstall.sh -f >/dev/null
/bin/bash -c "$(cat install.sh)"

- name: Check code styles
if: runner.os != 'windows'
run: |
brew install shellcheck shfmt diffutils
brew style *.sh

- run: /bin/bash uninstall.sh -n >/dev/null

- run: /bin/bash uninstall.sh -f >/dev/null
83 changes: 83 additions & 0 deletions install-master/.github/workflows/triage-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# This file is synced from the `.github` repository, do not modify it directly.
name: Triage issues

on:
push:
paths:
- .github/workflows/triage-issues.yml
branches-ignore:
- dependabot/**
schedule:
# Once every day at midnight UTC
- cron: "0 0 * * *"
issue_comment:

permissions:
issues: write
pull-requests: write

concurrency:
group: triage-issues
cancel-in-progress: ${{ github.event_name != 'issue_comment' }}

jobs:
stale:
if: >
startsWith(github.repository, 'Homebrew/') && (
github.event_name != 'issue_comment' || (
contains(github.event.issue.labels.*.name, 'stale') ||
contains(github.event.pull_request.labels.*.name, 'stale')
)
)
runs-on: ubuntu-latest
steps:
- name: Mark/Close Stale Issues and Pull Requests
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 21
days-before-close: 7
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
exempt-issue-labels: "gsoc-outreachy,help wanted,in progress"
exempt-pr-labels: "gsoc-outreachy,help wanted,in progress"

bump-pr-stale:
if: >
startsWith(github.repository, 'Homebrew/') && (
github.event_name != 'issue_comment' || (
contains(github.event.issue.labels.*.name, 'stale') ||
contains(github.event.pull_request.labels.*.name, 'stale')
)
)
runs-on: ubuntu-latest
steps:
- name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 2
days-before-close: 1
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. To keep this
pull request open, add a `help wanted` or `in progress` label.
exempt-pr-labels: "help wanted,in progress"
any-of-labels: "bump-formula-pr,bump-cask-pr"

lock-threads:
if: startsWith(github.repository, 'Homebrew/') && github.event_name != 'issue_comment'
runs-on: ubuntu-latest
steps:
- name: Lock Outdated Threads
uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-inactive-days: 30
add-issue-labels: outdated
pr-inactive-days: 30
add-pr-labels: outdated
25 changes: 25 additions & 0 deletions install-master/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BSD 2-Clause License

Copyright (c) 2009-present, Homebrew contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 changes: 45 additions & 0 deletions install-master/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Homebrew (un)installer

## Install Homebrew (on macOS or Linux)

```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

More installation information and options: <https://docs.brew.sh/Installation>.

If you're on macOS, try out our new `.pkg` installer. Download it from [Homebrew's latest GitHub release](https://github.com/Homebrew/brew/releases/latest).

If you are running Linux or WSL, [there are some pre-requisite packages to install](https://docs.brew.sh/Homebrew-on-Linux#requirements).

You can set `HOMEBREW_NO_INSTALL_FROM_API` to tap Homebrew/homebrew-core; by default, it will not be tapped as it is no longer necessary.

You can set `HOMEBREW_BREW_GIT_REMOTE` and/or `HOMEBREW_CORE_GIT_REMOTE` in your shell environment to use geolocalized Git mirrors to speed up Homebrew's installation with this script and, after installation, `brew update`.

```bash
export HOMEBREW_BREW_GIT_REMOTE="..." # put your Git mirror of Homebrew/brew here
export HOMEBREW_CORE_GIT_REMOTE="..." # put your Git mirror of Homebrew/homebrew-core here
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

The default Git remote will be used if the corresponding environment variable is unset.

If you want to run the Homebrew installer non-interactively without prompting for passwords (e.g. in automation scripts), you can use:

```bash
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

## Uninstall Homebrew

```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
```

If you want to run the Homebrew uninstaller non-interactively, you can use:

```bash
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
```

Download the uninstall script and run `/bin/bash uninstall.sh --help` to view more uninstall options.
Loading