Skip to content
Snippets Groups Projects
Commit 66d4591e authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Remove hacks for ripgrep issue (closes #47)

parent a2bf75bb
No related branches found
No related tags found
1 merge request!134Remove hacks for ripgrep issue (closes #47)
Pipeline #35980 passed
...@@ -48,28 +48,6 @@ import logging ...@@ -48,28 +48,6 @@ import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
def do_hack(project_dir):
"""
This function is supposed to be for temporary usage.
It implements hacks for the issue:
https://gitlab.idiap.ch/bob/bob.devtools/merge_requests/112
"""
#### HACK to avoid ripgrep ignoring bin/ directories in our checkouts
import shutil
git_ignore_file = os.path.join(project_dir, ".gitignore")
if os.path.exists(git_ignore_file):
logger.warning(
"Removing .gitignore to avoid issue with ripgrep (see "
"https://gitlab.idiap.ch/bob/bob.devtools/merge_requests/112)"
)
os.unlink(git_ignore_file)
#### END OF HACK
def set_environment(name, value, env=os.environ): def set_environment(name, value, env=os.environ):
"""Function to setup the environment variable and print debug message. """Function to setup the environment variable and print debug message.
...@@ -462,10 +440,6 @@ if __name__ == "__main__": ...@@ -462,10 +440,6 @@ if __name__ == "__main__":
setup_logger(logger, args.verbose) setup_logger(logger, args.verbose)
# Run conda-build hacks
# TODO: Remove this hack as soon as possible
do_hack(".")
condarc = os.path.join(args.conda_root, "condarc") condarc = os.path.join(args.conda_root, "condarc")
install_miniconda(args.conda_root, args.name) install_miniconda(args.conda_root, args.name)
......
...@@ -190,12 +190,7 @@ def build( ...@@ -190,12 +190,7 @@ def build(
group, group,
) )
#### HACK to avoid ripgrep ignoring bin/ directories in our checkouts
# TODO: Remove this hack as soon as possible
from bob.devtools.bootstrap import do_hack
project_dir = os.path.dirname(recipe_dir[0]) project_dir = os.path.dirname(recipe_dir[0])
do_hack(project_dir)
# get potential channel upload and other auxiliary channels # get potential channel upload and other auxiliary channels
channels = get_channels( channels = get_channels(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment