[Solved] Changing feeds.conf to use Github.com (instead of git.openwrt.org)

As part of the build process, I would like to change the feeds source from git.openwrt.org to github.com. I've already read this doc, but it does not contain current github repos.

The current 23.05.3 feeds.conf.default is as follows (points to git.openwrt.org ):

src-git packages https://git.openwrt.org/feed/packages.git^063b2393cbc3e5aab9d2b40b2911cab1c3967c59
src-git luci https://git.openwrt.org/project/luci.git^b07cf9dcfc37e021e5619a41c847e63afbd5d34a
src-git routing https://git.openwrt.org/feed/routing.git^648753932d5a7deff7f2bdb33c000018a709ad84
src-git telephony https://git.openwrt.org/feed/telephony.git^86af194d03592121f5321474ec9918dd109d3057

I've created the a new feeds.conf file pointing to Github as follows:

src-git packages https://github.com/openwrt/packages.git^063b2393cbc3e5aab9d2b40b2911cab1c3967c59
src-git luci https://github.com/openwrt/luci.git^b07cf9dcfc37e021e5619a41c847e63afbd5d34a
src-git routing https://github.com/openwrt/routing.git^648753932d5a7deff7f2bdb33c000018a709ad84
src-git telephony https://git.openwrt.org/feed/telephony.git^86af194d03592121f5321474ec9918dd109d3057

So except git.openwrt.org/feed/telephony.git which I did not find in Github, I did find other repos.

I tested the new conf with ./scripts/feeds update -a and it is working. So I would like to check if this approach is correct.

Thanks!

you have to run ./scripts/feeds install -a also.

1 Like

I just found out that telephony.git is also mirrored in Github. Therefore below is the sed command line to switch the default feeds sourced from git.openwrt.org to github.com. It will create the file feeds.config from the default values in feeds.config.default. The ./scripts/feeds script will use feeds.config (instead of feeds.config.default) if it exists. More details here.

sed -e 's,git.openwrt.org/feed,github.com/openwrt,g; s,git.openwrt.org/project,github.com/openwrt,g' feeds.conf.default > feeds.conf

See below for more details. Marking this post as solution.

23.05 feeds.conf.default pointing to git.openwrt.org:

src-git packages https://git.openwrt.org/feed/packages.git;openwrt-23.05
src-git luci https://git.openwrt.org/project/luci.git;openwrt-23.05
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-23.05
src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-23.05

23.05 feeds.conf generated by the above sed command line pointing to github.com:

src-git packages https://github.com/openwrt/packages.git;openwrt-23.05
src-git luci https://github.com/openwrt/luci.git;openwrt-23.05
src-git routing https://github.com/openwrt/routing.git;openwrt-23.05
src-git telephony https://github.com/openwrt/telephony.git;openwrt-23.05

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.