Skip to content

Files outside addons/ are attemping to be downloaded by default. #34

@Jack-023

Description

@Jack-023

When I run godot --headless -s plug.gd install, gdplug is attempting to download files outside the addons/ directory of various repos when I am not including the "include" setting, and when I am attempting to manually set it to "addons/". I have changed the default plugged directory to res://addons/gd-plug/.plugged as mentioned in other issues but otherwise my gd-plug setup is pretty basic. Here are some examples of the behavior I am seeing.

# res://plug.gd
func _plugging() -> void:
	# attempts to overwrite `res://.git/*`, `res://.gitignore`, `res://icon.svg`, etc.
	plug("heygleeson/godot-ldtk-importer") 

	# attempts to overwrite the same files as above
	plug("godot-extended-libraries/godot-antialiased-line2d", {"include": ["addons"]})

	# this one correctly installs only files in the path provided
	plug("kenyoni-software/godot-addons", {"dev": true, "include": ["addons/icon_explorer"]}) 

Fortunately it runs in safe mode by default I am just getting spammed with warnings but with --force passed it breaks the project repo since all the git files get replaced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions