Skip to content

Error installing sentry-rails 5.20.0: installing symlink '.rubocop.yml' pointing to parent path #2419

@matthewrfindley

Description

@matthewrfindley

Issue Description

Gem::Package::SymlinkError: installing symlink '.rubocop.yml' pointing to parent path /path-to-project/gems/ruby/3.3.0/gems/.rubocop.yml of /path-to-project/gems/ruby/3.3.0/gems/sentry-rails-5.20.0 is not allowed

It appears sentry-rails is symlinking to a rubocop.yml file located in the root of the project. This breaks any project that does not have a rubocop.yml

#2377

Reproduction Steps

gem install sentry-rails

Expected Behavior

Installing sentry-rails with no rubocop.yml succeeds

Actual Behavior

Raises an error on install.

Gem::Package::SymlinkError: installing symlink '.rubocop.yml' pointing to parent path /path-to-project/gems/ruby/3.3.0/gems/.rubocop.yml of /path-to-project/gems/ruby/3.3.0/gems/sentry-rails-5.20.0 is not allowed

Ruby Version

3.3.4

SDK Version

5.20.0

Integration and Its Version

No response

Sentry Config

No response

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions