Comments (6)
Comment by Earnestly
Tuesday Dec 22, 2015 at 20:44 GMT
This smells like a package manager/package build system problem; with something like PKGBUILD
s this is easily handled with:
# It is merely coincidence that the submodule is from the same
# github user, but this could be from anywhere.
source=('git+https://github.com/Cloudef/wlc'
'git+https://github.com/Cloudef/chck')
# And in the prepare/post-build function:
prepare() {
cd wlc
git submodule init
git config submodule.lib/chck.url "$srcdir"/chck
git submodule update lib/chck
}
I'm not sure how it works in Gentoo but usually packages have a policy of "do not download during the build" and "do not build during the install".
from ewlc.
Comment by Cloudef
Tuesday Dec 22, 2015 at 20:50 GMT
This breaks git submodules completely when ../chck.git is not available. Effectively breaking in-source builds which are useful for development.
from ewlc.
Comment by mgorny
Thursday Dec 24, 2015 at 08:20 GMT
@Cloudef, I don't understand the problem you are referring to. This affects only the clone URI, and is relatively to the remote URI. So if you git clone [email protected]:...
the original repository, the submodule will also be fetched from github via SSH.
from ewlc.
Comment by Cloudef
Monday Jan 04, 2016 at 07:34 GMT
All right, I did not know relative urls are relative to the actual remote. This makes sense then. I'll test this later.
from ewlc.
Comment by Cloudef
Monday Jan 04, 2016 at 14:32 GMT
This actually breaks your fork, since it tries to clone chck from your github git path, but does not exist there. I think it's better to use git config to specify the submodule url manually for the specific cases.
from ewlc.
Comment by mgorny
Monday Jan 04, 2016 at 19:26 GMT
I'd dare say fork is a specific case, while just cloning the upstream repo is a generic case which should be accounted for. IOW, person doing git clone https://github.com/Cloudef/wlc
would expect submodules to work out of the box, independently of firewalls.
from ewlc.
Related Issues (20)
- Missing include in gles2.c HOT 1
- New created views has strange geometry HOT 1
- [question] Is this going to be merged with WLC?
- [Feature Request] set kbmap per window HOT 4
- wlc error when starting sway inside tmux
- Bugs with Qt-applications... HOT 1
- Use seat interface version 5 HOT 7
- build/link error "undefined reference to `zxdg_*"
- wlc example not letting me leave virtual terminal session HOT 1
- build fails except `wayland-protocols` is installed system-wide HOT 2
- Screen tearing
- Allow keys to be remapped based on press duration
- If callback to view_set_geometry is not specified, view is doing what it wants
- X backend is broken as of EGLStreams support HOT 3
- Weird behavior when switching to/from VT when using scaled output HOT 2
- Build has too many warnings HOT 3
- glfw window not showing when not creating OpenGL context HOT 8
- When switching vts, wlc_output_created_cb is called without corresponding wlc_output_destroyed_cb
- wlc is going to be abandoned? HOT 6
- Set XWayland scaling HOT 2
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 ewlc.