Comments (7)
似乎现在的同步脚本无法正确处理包含 license 字段的 formula?不包含这个字段的包(例如 i2util)同步是正常的。
from homebrew-bottle-mirror.
我修改了科大镜像站使用的 homebrew-bottles image(ustclug/ustcmirror-images@9b24016),并且目前看来同步没有出问题(同步还在跑)。
修改方法是:
- 使用 Alpine 3.11 构建镜像(因为 3.11 有 Ruby 2.6.x,更新的 Alpine 版本的 Ruby 就是 2.7+ 了,而 Homebrew 需要 2.6.x 的 Ruby。在我们的 image 上测试 homebrew 安装自己的 portable ruby 会失败。)
apk
安装依赖加上ruby-fiddle
。
如果这个仓库要改的话,smartentry/alpine 可能要加上 3.11 这个版本?(并且需要每隔一段时间就构建一次 image?)
from homebrew-bottle-mirror.
已修复,本地测试正常
from homebrew-bottle-mirror.
@taoky
FYI, smartentry 每周会自动构建一次新版本 (travis-ci cron job)
from homebrew-bottle-mirror.
感觉可以考虑使用官方 API 获取 bottles 地址,而非扫描 formula?
FYI: https://formulae.brew.sh/docs/api/
FYI: https://github.com/sjtug/mirror-clone/blob/master/src/homebrew.rs
from homebrew-bottle-mirror.
@skyzh 非常棒的主意~ 近期来试试看
from homebrew-bottle-mirror.
尝试写了一个基于JSON API 的同步脚本,效果很好~
https://github.com/ustclug/ustcmirror-images/blob/master/homebrew-bottles/sync.sh
这种方式应该能规避几乎所有的 brew ruby API 变动导致的同步工具失效问题
如果没有其他意外,ruby 版本的同步程序将不再维护
@skyzh 非常感谢提供思路和参考方案!
from homebrew-bottle-mirror.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-bottle-mirror.