Git Product home page Git Product logo

Comments (10)

batkov avatar batkov commented on June 13, 2024 11

@isgallagher this workaround worked.

Copying for other unfortunate devs:

curl -Lo /tmp/swiftgen.rb https://raw.githubusercontent.com/iMichka/homebrew-core/17ae00b4bf1640cc544eae5f6eec03775c09420b/Formula/swiftgen.rb && brew install /tmp/swiftgen.rb && rm /tmp/swiftgen.rb

from swiftgen.

Liquidsoul avatar Liquidsoul commented on June 13, 2024 6

Problem should be fixed once the homebrew-core PR gets merged 🤞

Sorry for the inconvenience.

from swiftgen.

teejayhh avatar teejayhh commented on June 13, 2024 4
brew install swiftgen

is part of our ci pipeline and I dont really want to make the curl solution the permanent fix. Will this be resolved so we can use brew again ? I tried mint but I had issues using swiftgen afterwards.

from swiftgen.

batkov avatar batkov commented on June 13, 2024 2

brew install swiftgen works now. Thanks

from swiftgen.

isgallagher avatar isgallagher commented on June 13, 2024 1

Try this. #1030 (comment)

from swiftgen.

gongzhang avatar gongzhang commented on June 13, 2024 1

@isgallagher this workaround worked.
Copying for other unfortunate devs:

curl -Lo /tmp/swiftgen.rb https://raw.githubusercontent.com/iMichka/homebrew-core/17ae00b4bf1640cc544eae5f6eec03775c09420b/Formula/swiftgen.rb && brew install /tmp/swiftgen.rb && rm /tmp/swiftgen.rb

I've tried to replace brew install swiftgen with this command. However receiving an error and warning on the console:

Error: Failed to load cask: /tmp/swiftgen.rb
Cask 'swiftgen' is unreadable: wrong constant name #<Class:0x000000010ff17768>
Warning: Treating /tmp/swiftgen.rb as a formula.

How can I resolve this issue?

Already installed? Try ... && brew reinstall /tmp/swiftgen.rb && ... 😉

from swiftgen.

lhoracek avatar lhoracek commented on June 13, 2024 1

We've replaced it with mint install.
brew install mint
mint install SwiftGen/SwiftGen

from swiftgen.

isgallagher avatar isgallagher commented on June 13, 2024 1

We've replaced it with mint install. brew install mint mint install SwiftGen/SwiftGen

I am not able to get mint's install to actually work.

SwiftGenCLI/resource_bundle_accessor.swift:11: Fatal error: could not load resource bundle: from /Users/removed/.mint/bin/SwiftGen_SwiftGenCLI.bundle or /private/var/folders/_8/cr5ngqns1n38s7l4tg3crv2m0000gn/T/mint/github.com_SwiftGen_SwiftGen/.build/arm64-apple-macosx/release/SwiftGen_SwiftGenCLI.bundle zsh: trace trap ~/.mint/bin/swiftgen

But it works when I use the curl brew install method.

from swiftgen.

muradtries avatar muradtries commented on June 13, 2024

@isgallagher this workaround worked.

Copying for other unfortunate devs:

curl -Lo /tmp/swiftgen.rb https://raw.githubusercontent.com/iMichka/homebrew-core/17ae00b4bf1640cc544eae5f6eec03775c09420b/Formula/swiftgen.rb && brew install /tmp/swiftgen.rb && rm /tmp/swiftgen.rb

I've tried to replace brew install swiftgen with this command. However receiving an error and warning on the console:

Error: Failed to load cask: /tmp/swiftgen.rb
Cask 'swiftgen' is unreadable: wrong constant name #<Class:0x000000010ff17768>
Warning: Treating /tmp/swiftgen.rb as a formula.

How can I resolve this issue?

from swiftgen.

VicenteAlbert avatar VicenteAlbert commented on June 13, 2024

We've replaced it with mint install. brew install mint mint install SwiftGen/SwiftGen

Although this worked for me also, my project setup couldn't find the "swiftgen" command, even if I could run it from terminal. If you need specific homebrew installation, this worked for me:

1. disable homebrew's check update 'export HOMEBREW_NO_INSTALL_FROM_API=1', otherwise the installation will overwrite the file edited below
2. Manually change the repository file 'brew edit swiftgen', which will automatically edit the repository file using vim
3. find 'disable! date: "xxxx", because: xxxx', add # before it, comment out this line
4. ':wq' Save and exit edit
5. 'brew install swiftgen' to install

from swiftgen.

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.