8000 Unbreak master by jez · Pull Request #1077 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Unbreak master #1077

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

Merged
merged 1 commit into from
Jun 26, 2019
Merged

Unbreak master #1077

merged 1 commit into from
Jun 26, 2019

Conversation

jez
Copy link
Collaborator
@jez jez commented Jun 26, 2019

Because we didn't have a Gemfile, rbenv exec srb just runs whichever
version of srb is installed for the current Ruby version in
.ruby-version.

In particular, because the ~/.rbenv folder is shared across tests, it
might have artifacts from other people's branches (specifically when the
tests failed, and we didn't get to the line to delete the existing
gems). And because our version numbers are just "how many commits since
the beginning of time", 0.4.FOO might be the same number as 0.4.BAR in
someone else's branch, even though those two versions are completely
unrelated, and also completely unrelated to the gems that will
EVENTUALLY be published with that as the Canonical Version.

I chose to both remove before each run and also trap EXIT just in case,
because in no cases do we want these gems to persist on the mac machine
after a CI run.

Motivation

Unbreak master.

Test plan

CI should pass now.

Because we didn't have a `Gemfile`, `rbenv exec srb` just runs whichever
version of `srb` is installed for the current Ruby version in
`.ruby-version`.

In particular, because the `~/.rbenv` folder is shared across tests, it
might have artifacts from other people's branches (specifically when the
tests failed, and we didn't get to the line to delete the existing
gems). And because our version numbers are just "how many commits since
the beginning of time", 0.4.FOO might be the same number as 0.4.BAR in
someone else's branch, even though those two versions are completely
unrelated, and **also** completely unrelated to the gems that will
EVENTUALLY be published with that as the Canonical Version.

I chose to both remove before each run and al
8000
so trap EXIT just in case,
because in no cases do we want these gems to persist on the mac machine
after a CI run.
@jez jez requested a review from a team June 26, 2019 21:35
@ghost ghost requested review from ptarjan and removed request for a team June 26, 2019 21:35
@DarkDimius DarkDimius merged commit 31ad958 into master Jun 26, 2019
@jez jez deleted the jez-debug branch June 26, 2019 22:32
@@ -47,6 +47,8 @@ pushd gems/sorbet
sed -i.bak "s/0\\.0\\.0/${release_version}/" sorbet.gemspec
gem build sorbet.gemspec
if [[ "mac" == "$platform" ]]; then
rbenv exec gem uninstall --all --executables --ignore-dependencies sorbet sorbet-static
trap 'rbenv exec gem uninstall --all --executables --ignore-dependencies sorbet sorbet-static' EXIT
Copy link
Contributor

Choose a reason for hiding this comment

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

why is the rbenv .... everything .... duplicated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ptarjan ptarjan ptarjan left review comments

@DarkDimius DarkDimius DarkDimius approved these changes

Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0