Skip to content

Commit

Permalink
Fix CI (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit authored Jan 27, 2024
1 parent 49d7572 commit f934981
Show file tree
Hide file tree
Showing 10 changed files with 215 additions and 164 deletions.
2 changes: 1 addition & 1 deletion packages/custom_lint/example/example_lint/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: custom_lint_example_lint
publish_to: none

environment:
sdk: '>=2.16.0 <4.0.0'
sdk: '>=3.0.0 <4.0.0'

dependencies:
analyzer: ">=5.12.0 <7.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# melos_managed_dependency_overrides: custom_lint,custom_lint_builder,custom_lint_core
dependency_overrides:
custom_lint:
path: ../../../custom_lint
custom_lint_builder:
path: ../../../custom_lint_builder
custom_lint_core:
path: ../../../custom_lint_core
2 changes: 1 addition & 1 deletion packages/custom_lint/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: custom_lint_example_app
publish_to: none

environment:
sdk: '>=2.16.0 <4.0.0'
sdk: '>=3.0.0 <4.0.0'

dependencies:
riverpod: ^2.0.0
Expand Down
10 changes: 10 additions & 0 deletions packages/custom_lint/example/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# melos_managed_dependency_overrides: custom_lint,custom_lint_builder,custom_lint_core,custom_lint_example_lint
dependency_overrides:
custom_lint:
path: ../../custom_lint
custom_lint_builder:
path: ../../custom_lint_builder
custom_lint_core:
path: ../../custom_lint_core
custom_lint_example_lint:
path: example_lint
10 changes: 1 addition & 9 deletions packages/custom_lint/lib/src/runner.dart
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import 'dart:async';

import 'package:analyzer/file_system/overlay_file_system.dart';
import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer_plugin/protocol/protocol_generated.dart';
import 'package:cli_util/cli_util.dart';

import 'analyzer_utils/analyzer_utils.dart';
import 'server_isolate_channel.dart';
import 'v2/custom_lint_analyzer_plugin.dart';
import 'workspace.dart';

const _pluginName = 'custom_lint';
const _analyzerPluginProtocolVersion = '1.0.0-alpha.0';

/// A runner for programmatically interacting with a plugin.
Expand All @@ -29,10 +25,6 @@ class CustomLintRunner {

var _closed = false;

late final _resourceProvider = OverlayResourceProvider(
PhysicalResourceProvider.INSTANCE,
);

late final _sdkPath = getSdkPath();

/// Starts the plugin and sends the necessary requests for initializing it.
Expand All @@ -43,7 +35,7 @@ class CustomLintRunner {

await channel.sendRequest(
PluginVersionCheckParams(
_resourceProvider.getByteStorePath(_pluginName),
'',
_sdkPath,
_analyzerPluginProtocolVersion,
),
Expand Down
Loading

1 comment on commit f934981

@vercel
Copy link

@vercel vercel bot commented on f934981 Jan 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.