Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 929599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:11:56+00:00 2026-05-15T20:11:56+00:00

Suppose Project X is the base project and Project Y depends on X. Project

  • 0

Suppose Project X is the base project and Project Y depends on X. Project Y might be a plugin for Project X, or perhaps it is a standalone app that requires Project X in some other fashion.

I have thought all this time that Project Y should be the superproject, and Project X should be a submodule of Project Y.

However, upon reading this, it appears as though my thinking may be inverted. In the article, the dependency is the superproject and dependent code (in this case, plugins) are submodules. Is this the correct way to use submodules, then?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:11:57+00:00Added an answer on May 15, 2026 at 8:11 pm

    If ProjectY can live without knowing anything about ProjectX (which can be the case it it is a plugin for X), it cannot be a superproject.

    If it it needs X to somehow be complete, then yes, it could be a superproject, in order to reference X within its tree (as explained in true nature of submodules).

    In a component-based approach, a true superproject would be a third project which references the right version of ProjectY and ProjectX in order to record the exact configuration (i.e. list of revisions) needed for the overall project to work.


    The OP add the right question: where do one stores the dependency (of Y on X)?

    If one takes the component-based approach and has a ProjectZ superproject, and ProjectY has a dependency on ProjectX to build, do we not include ProjectX as a submodule in ProjectY’s repository, but only in ProjectZ?
    This would mean that ProjectY could not be built on its own, making it (for lack of eloquence) a sort of “implied submodule.”

    If you have only 2 components, one depending on the other, sure: you can directly declare ProjectX as a submodule of ProjectY.

    But if ProjectY cannot been built on its own, it is not a “complete” (as in “autonomous”) project anyway.
    Hence a global parent “ProjectZ”, where storing that dependency information outside ProjectY has its advantages:

    1. keep each module paths more visible, directly from ProjectZ root (instead of burying ProjectX potentially deep within ProjectY, making that dependency less visible to ProjectY clients)
    2. unifying ProjectX versions (if several modules need ProjectX, referencing it once in ProjectZ clearly advertise the “one official version” of ProjectX that all the other modules should use)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose, I have an opensource project that depends on some library, that must be
Suppose I have a project MyFramework that has some code, which is used across
Suppose we have some data that looks like so R_Id Nm Base Dest Proj
Suppose my solution have two project: myApp: silverlight application project: the default application App
Suppose I have my project using Base SDK = 4 but set the Target
Suppose we have a user library project ProjectUserlib that uses an external jar external.jar,
I have a GWT game project. I'd like to pull some of the base
Suppose I have a base project (or framework) which provides features A, B and
Suppose I have a VC++ project containing number of Source (.cpp) files (e.g. 5),
Suppose I have got a model ArticleVersion in my project which is defined as:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.