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

dvc import-url --to-remote: no entry added to .gitignore #10217

Closed
turkanis opened this issue Jan 3, 2024 · 0 comments · Fixed by #10218
Closed

dvc import-url --to-remote: no entry added to .gitignore #10217

turkanis opened this issue Jan 3, 2024 · 0 comments · Fixed by #10218
Assignees
Labels
A: data-sync Related to dvc get/fetch/import/pull/push bug Did we break something?

Comments

@turkanis
Copy link

turkanis commented Jan 3, 2024

Bug Report

Description

When I run dvc import-url with the --to-remote option, a .dvc file is create and the data is written to remote storage, as expected, but no entry is created in .gitignore. When I then run dvc pull, a local copy of the data is created and git status shows it as untracked.

Reproduce

git init
dvc init
dvc remote add -d gcs gs://bucket/dvc-test
dvc import-url --to-remote https://data.dvc.org/get-started/data.xml

	# creates data.xml.dvc
        # writes to remote storage
	# no entry added to .gitignore
	
dvc pull

	# creates data.xml
	# git shows data.xml as untracked

Expected

dvc import-url --to-remote should create a .gitignore entry.

Environment information

Output of dvc doctor:

-------------------
Platform: Python 3.9.18 on Linux-5.15.139-93.147.amzn2.x86_64-x86_64-with-glibc2.26
Subprojects:
	dvc_data = 3.5.0
	dvc_objects = 3.0.0
	dvc_render = 1.0.0
	dvc_task = 0.3.0
	scmrepo = 2.0.2
Supports:
	gs (gcsfs = 2023.12.2.post1),
	http (aiohttp = 3.9.1, aiohttp-retry = 2.8.3),
	https (aiohttp = 3.9.1, aiohttp-retry = 2.8.3),
	s3 (s3fs = 2023.12.2, boto3 = 1.33.13)
Config:
	Global: /home/jdt/.config/dvc
	System: /etc/xdg/dvc
Cache types: hardlink, symlink
Cache directory: ext4 on /dev/nvme1n1p1
Caches: local
Remotes: gs
Workspace directory: ext4 on /dev/nvme1n1p1
Repo: dvc, git
Repo.site_cache_dir: /var/tmp/dvc/repo/6b15905d035234f0f2ee787a413d4ed7
@efiop efiop added the bug Did we break something? label Jan 3, 2024
@dberenbaum dberenbaum added the A: data-sync Related to dvc get/fetch/import/pull/push label Jan 3, 2024
@efiop efiop added this to DVC Jan 3, 2024
@github-project-automation github-project-automation bot moved this to Backlog in DVC Jan 3, 2024
@efiop efiop moved this from Backlog to Done in DVC Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: data-sync Related to dvc get/fetch/import/pull/push bug Did we break something?
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants