Skip to content

Commit

Permalink
[build][reproducible]Fix version file access for docker-<container>-d…
Browse files Browse the repository at this point in the history
…bg.gz build (sonic-net#18485)

Why I did it
Reproducible build fails when building dbg containers make INSTALL_DEBUG_TOOLS=y target/docker-orchagent-dbg.gz

Work item tracking
How I did it
How to verify it
export SONIC_VERSION_CONTROL_COMPONENTS=all
make configure PLATFORM=broadcom
make INSTALL_DEBUG_TOOLS=y target/docker-orchagent-dbg.gz
  • Loading branch information
baxia-lan authored Apr 12, 2024
1 parent a445e26 commit 19e3bbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/versions_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ def get_module_path_by_name(cls, source_path, module_name):
return os.path.join(source_path, 'files/build/versions', module_name)
if module_name.startswith('build-sonic-slave-'):
return os.path.join(source_path, 'files/build/versions/build', module_name)
if module_name.endswith('-dbg'):
return os.path.join(source_path, 'files/build/versions/dockers', module_name.removesuffix('-dbg'))
return os.path.join(source_path, 'files/build/versions/dockers', module_name)

def __repr__(self):
Expand Down

0 comments on commit 19e3bbf

Please sign in to comment.