Граф коммитов

170 Коммитов

Автор SHA1 Сообщение Дата
Jon Ruskin 1a0f1b27e7 update cabal deps to work with 9.4 2022-12-22 19:52:04 -07:00
Jon Ruskin 3054bc2f96 Revert "correct rubocop offenses"
This reverts commit a4f4f0d5f9.
2022-12-22 15:24:46 -07:00
Jon Ruskin a4f4f0d5f9 correct rubocop offenses 2022-12-22 15:21:53 -07:00
Jon Ruskin 79e4cc573b
Merge pull request #586 from github/no_more_ruby_packer
Remove ruby packer usage and executable releases
2022-12-22 12:12:43 -07:00
Louis Boudreau 02bf91468a Remove test for metadata 2022-12-12 11:21:21 -05:00
Jon Ruskin 9686c16713 remove ruby_packer checks from bundler source 2022-12-11 13:32:32 -07:00
Louis Boudreau fdd18f7a4b Add CocoaPods source 2022-12-08 17:31:48 -05:00
Jon Ruskin c3893ef845 separate go and dep fixtures, test each separately
- go testing now uses modules by default
2022-11-25 14:45:06 -07:00
Jon Ruskin 208d46156d ignore nested metadata from pip sources 2022-10-16 20:41:04 -07:00
Jon Ruskin 752e3f7280 find license files for hatch-built dependencies
hatch puts files in .dist-info/licenses
2022-10-06 14:49:53 -07:00
Jarek Radosz 598f683243
Replace mini_racer to fix latest macOS/Apple silicon compatibility
mini_racer 0.3.1 isn't compatible with more recent macOS versions (in part due to lack of python 2) which made `script/setup` fail with:

```
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/cvx/dev/licensed/test/fixtures/bundler/vendor/gems/ruby/2.7.0/gems/libv8-8.4.255.0/ext/libv8
/Users/cvx/.rubies/ruby-2.7.6/bin/ruby -I /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0 extconf.rb
creating Makefile
/Users/cvx/dev/licensed/test/fixtures/bundler/vendor/gems/ruby/2.7.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:57:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently
3.9.13 (RuntimeError)
	from /Users/cvx/dev/licensed/test/fixtures/bundler/vendor/gems/ruby/2.7.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:39:in `build_libv8!'
	from /Users/cvx/dev/licensed/test/fixtures/bundler/vendor/gems/ruby/2.7.0/gems/libv8-8.4.255.0/ext/libv8/location.rb:24:in `install!'
	from extconf.rb:7:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Users/cvx/dev/licensed/test/fixtures/bundler/vendor/gems/ruby/2.7.0/gems/libv8-8.4.255.0 for inspection.
Results logged to /Users/cvx/dev/licensed/test/fixtures/bundler/vendor/gems/ruby/2.7.0/extensions/arm64-darwin-21/2.7.0-static/libv8-8.4.255.0/gem_make.out

  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:102:in `run'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/ext/ext_conf_builder.rb:28:in `build'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:171:in `build_extension'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:205:in `block in build_extensions'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:202:in `each'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/ext/builder.rb:202:in `build_extensions'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/installer.rb:851:in `build_extensions'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/rubygems_gem_installer.rb:72:in `build_extensions'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/rubygems_gem_installer.rb:28:in `install'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/source/rubygems.rb:207:in `install'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/installer/gem_installer.rb:54:in `install'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/installer/parallel_installer.rb:186:in `do_install'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/worker.rb:62:in `apply_func'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/worker.rb:57:in `block in process_queue'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/worker.rb:54:in `loop'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/worker.rb:54:in `process_queue'
  /Users/cvx/.rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/bundler/worker.rb:91:in `block (2 levels) in create_threads'

An error occurred while installing libv8 (8.4.255.0), and Bundler cannot continue.

In Gemfile:
  mini_racer was resolved to 0.3.1, which depends on
    libv8
Encountered an error running script/source-setup/bundler.
```

Updating it caused a different problem - a bug in bundler caused it to install both `linux` and `linux-musl` variants in the CI environment. (see: https://github.com/rubyjs/libv8-node/issues/5 and https://github.com/rubygems/rubygems/issues/3174)

This instead replaces `mini_racer` example with `loofah`. That gem depends on `nokogiri` which provides different binary variants, like `libv8`/`libv8-node` did.

But this one builds properly on macOS and does not provide `linux-musl` variant so it should not cause any issues on CI.
2022-07-30 10:44:26 +02:00
Jon Ruskin d020bfac0d fix issues shown with latest rubocop-github 2022-07-28 08:46:54 -07:00
Jon Ruskin e7988ad080 support pip packages with license_files folder 2022-04-25 14:37:16 -07:00
Markus Fasselt 305e3fc623 Add test case for composer dev dependencies 2022-03-17 18:18:31 +01:00
Jon Ruskin dcfaa4d9a6
Merge pull request #485 from github/npm-workspaces
Initial support for npm workspaces
2022-03-16 13:44:28 -07:00
Jon Ruskin eaa674df05 minimal support for npm workspaces
- remove the workspace package from the returned results
- add notes in docs for npm source about npm version requirements
2022-03-15 16:30:48 -07:00
Jon Ruskin ae0db440cd use different transitive dependency
it looks like the one I used before might have been
a dependency of an older pip version that's no
longer present in the version used in CI
2022-03-15 14:59:39 -07:00
Jon Ruskin d486f10bc6 use pip list to get packages for pip source
this also removes the need for a requirements.txt file
in the current directory
2022-03-15 14:10:55 -07:00
Jon Ruskin baceec51c0 handle additional case of missing optional peer dependencies 2022-01-31 09:57:20 -07:00
Jon Ruskin dab7ff5513 handle namespaced packages 2022-01-15 22:49:07 -07:00
Jon Ruskin 2c8ca11a74 improve glob when finding dependency package.json
suggested by ljharb as an improvement by ignoring
package.json files that don't represent installed packages

this also moves the dependency_paths method to the
shared class to consolidate the functionality across
both source versions
2022-01-15 22:09:15 -07:00
Jon Ruskin a546ebb2ba lint 2021-11-26 21:07:11 -07:00
Jon Ruskin 8debc0ea16 add yarn enumerator for berry version 2021-11-26 19:55:45 -07:00
Jon Ruskin 50ae9ab68d move yarn -> yarn/v1 2021-11-26 19:54:55 -07:00
Manuel Puyol 2eab0ea1f0 Don't error when an indirect peerDependency is missing in npm 7+ 2021-09-30 19:07:06 +00:00
Jon Ruskin 3c16c9a8f5 speed up manifest source for large repos
1. use set intersection instead of checking file existence
2. modify a single set, avoiding object allocation/copy
2021-09-19 20:22:18 -07:00
Jon Ruskin 1fd1237583 linting 2021-09-18 17:23:08 -07:00
Jon Ruskin 331b0b2e15 add support for rust via cargo 2021-09-18 17:11:24 -07:00
Jon Ruskin 1423d8e236 remove more custom logic, rely on bundler internals
This removes more custom logic from the bundler
source, and relies more on bundler internals to
the appropriate files

There are two significant changes here
1. Using ::Bundler.load after ::Bundler.reset!
   reconfigures the local bundler runtime.  This
   forces bundler to pick up any changes to the
   available platforms
2. Monkeypatching ::Bundler::Definition in order
   to remove as much custom logic as possible.  As
   bundler changes, it's become increasingly brittle
   to use custom behaviors outside of how Bundler
   normally operates.  This move is intended to focus
   the source more on configuring Bundler to operate
   over multiple directories similar to how Bundler
   configures RubyGems to operate over multiple
   projects.
2021-09-03 21:00:21 -07:00
Matthieu MOREL 73cfbbe954 feat(go) : use pkg.go.dev instead of godoc.org
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
2021-08-31 08:38:48 +02:00
Jon Ruskin 7317f0b918 fix go 1.12 test pass with go modules
restore previous ENV after tests are run
set GO111MODULE on by default

this could expose tests that relied on modules
defaulting to off in go 1.12
2021-06-19 20:32:16 -07:00
Jon Ruskin ee65f1c5a3 force modules on for module tests 2021-06-19 20:26:56 -07:00
Jon Ruskin 9ef4e2c6fe reset bundle gemfile env after tests
seems like this might be the cause of the test flakiness
2021-06-19 18:31:29 -07:00
Jon Ruskin f957099d4a enforce mod=vendor with vendored module tests 2021-06-19 18:22:11 -07:00
Jon Ruskin 3057a0337f uncomment test, fix whitespace 2021-06-19 15:34:05 -07:00
Jon Ruskin af7c9d9831 fix for test setup with 1.16
and prepare for modules on always in 1.17

- turn off mods when setting up non-module fixture
- recreate most dependency tests for modules
- use modules by default for non-dependency tests
2021-06-19 15:15:36 -07:00
Jon Ruskin a528edf40b fix npm tests
a raised error is no longer raised on later npm 7 releases
2021-06-19 11:51:39 -07:00
Jon Ruskin a99de6aade
Merge pull request #372 from github/no-bundler-reset-if-not-needed
Do not reset bundler environment if unneeded
2021-06-16 09:53:30 -07:00
Jon Ruskin 224b243d76 do not reset bundler environment if unneeded 2021-06-15 17:47:18 -07:00
Jon Ruskin b45b6b0613 update test for new error message 2021-06-11 14:59:59 -07:00
Jon Ruskin 7937a6d17b Merge branch 'master' into nuget-fallback-folders 2021-06-10 16:57:23 -07:00
Jon Ruskin ccdb1a00b2
Merge pull request #370 from github/go-case-insensitive-path-matching
Make go local package checks case insensitive
2021-06-09 16:58:11 -07:00
Jon Ruskin 3ee1b9f710 make path matching case insensitive 2021-06-07 17:20:05 -07:00
Jon Ruskin 4e492e132d fix paths and add missing files 2021-06-07 17:12:39 -07:00
Jon Ruskin 9f56805d25
Merge pull request #365 from github/nuget-configurable-obj-path
Add configurable property for nuget project obj path
2021-06-07 15:48:16 -07:00
Jon Ruskin 351d3af7a8 add tests to see if they fail 2021-06-07 15:26:35 -07:00
Jon Ruskin 4938d41a6c add available metadata to swift dependencies 2021-05-30 21:29:17 -07:00
Jon Ruskin 0795eee969 check fallback folders for project dependencies
+ raise error if json can't be parsed
+ set dependency error if path isn't found

based on solution by paveliak from
https://github.com/github/licensed/pull/273
2021-05-30 20:54:38 -07:00
Jon Ruskin 1199d29c2e enable setting a custom obj path
to support glob patterns in source paths
2021-05-30 17:32:56 -07:00
Jon Ruskin c06e0da26c
Merge pull request #363 from mattt/swift
Add support for Swift / Swift Package Manager
2021-05-27 08:49:47 -07:00