Code Monkey home page Code Monkey logo

Comments (3)

bayandin avatar bayandin commented on July 24, 2024 1

But we'd need the HOMEBREW_NEW_FORMULA environment variable to be set for new formulae for this to work. Presumably, this can be done in the same way HOMEBREW_REQUIRE_BOTTLED_ARM is set.

Can we use new_formula = @added_formulae.include?(formula_name)? (from line 598, we'll need to move it up):

if Hardware::CPU.arm? &&
ENV["HOMEBREW_REQUIRE_BOTTLED_ARM"] &&
!formula.bottled? &&
!formula.bottle_unneeded?
opoo "#{formula.full_name} has not yet been bottled on ARM!"
skip formula.name
return
end
deps = []
reqs = []
fetch_args = [formula_name]
fetch_args << "--build-bottle" if !formula.bottle_disabled? && !args.build_from_source?
fetch_args << "--force" if args.cleanup?
livecheck_args = [formula_name]
livecheck_args << "--full-name"
livecheck_args << "--debug"
new_formula = @added_formulae.include?(formula_name)
audit_args = [formula_name, "--online"]
if new_formula
audit_args << "--new-formula"
else
audit_args << "--git" << "--skip-style"
end

from homebrew-test-bot.

carlocab avatar carlocab commented on July 24, 2024

Here's one idea:

diff --git a/lib/tests/formulae.rb b/lib/tests/formulae.rb
index a9ec56b..3a17787 100644
--- a/lib/tests/formulae.rb
+++ b/lib/tests/formulae.rb
@@ -580,7 +580,7 @@ module Homebrew
            !formula.bottled? &&
            !formula.bottle_unneeded?
           opoo "#{formula.full_name} has not yet been bottled on ARM!"
-          skip formula.name
+          skip formula.name unless ENV["HOMEBREW_NEW_FORMULA"]
           return
         end 

But we'd need the HOMEBREW_NEW_FORMULA environment variable to be set for new formulae for this to work. Presumably, this can be done in the same way HOMEBREW_REQUIRE_BOTTLED_ARM is set.

Thoughts, @MikeMcQuaid?

Edit: Wait, no, this is totally wrong. Never mind. I think that's better?

from homebrew-test-bot.

carlocab avatar carlocab commented on July 24, 2024

Great suggestion; I was looking for where test-bot figured out whether a formula was new. (Not hard enough, it seems.) I'll open a PR for this.

from homebrew-test-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.