Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease number of submodules pulled into the user workspace #23

Open
taniazplv opened this issue Sep 22, 2022 · 0 comments
Open

Decrease number of submodules pulled into the user workspace #23

taniazplv opened this issue Sep 22, 2022 · 0 comments
Assignees

Comments

@taniazplv
Copy link
Collaborator

  1. This instruction will result in pulling too many undesirable submodules into the user workspace:

  2. cd DASH && git checkout dev-tests-extension
    git submodule update --init --recursive
    For example, it pulls in everything under dash-pipeline/SAI/SAI, e.g. SAI/bm which is old junk:

Cloning into '/home/chris/plvision-DASH/DASH/dash-pipeline/SAI/SAI/bm/behavioral-model'...

  1. Notice the make target called sai-submodule. I use this to automatically pull in only the ptf submodule under SAI. You could use a similar approach to automatically and most important, selectively, pull in submodules you've added to the project. Please find some approach like this, thanks.
  2. SAI/SAI: sai-submodule
    sai-submodule:
    @echo "Initializing SAI submodule..."
    git submodule update --init
    @echo "Initializing SAI submodule..."
    cd SAI/SAI/test && git submodule update --init ptf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants