Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
markdown
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
markdown
Merge requests
!51
Issue
#3529633
: Explain Unknown parsers more clearly
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3529633
: Explain Unknown parsers more clearly
issue/markdown-3529633:3529633-explain-unknown-parsers
into
3.0.x
Overview
1
Commits
7
Pipelines
7
Changes
2
All threads resolved!
Thread options
Hide all comments
Open
Issue #3529633: Explain Unknown parsers more clearly
Malcolm Young
requested to merge
issue/markdown-3529633:3529633-explain-unknown-parsers
into
3.0.x
3 months ago
Overview
1
Commits
7
Pipelines
7
Changes
2
All threads resolved!
Thread options
Hide all comments
Closes
#3529633
0
0
Merge request reports
Compare
3.0.x
version 6
1b8c7198
3 months ago
version 5
69408a7a
3 months ago
version 4
6cd45b87
3 months ago
version 3
e18e0794
3 months ago
version 2
da60c81b
3 months ago
version 1
bb40c5fa
3 months ago
3.0.x (HEAD)
and
latest version
latest version
5c26d09b
7 commits,
3 months ago
version 6
1b8c7198
6 commits,
3 months ago
version 5
69408a7a
5 commits,
3 months ago
version 4
6cd45b87
4 commits,
3 months ago
version 3
e18e0794
3 commits,
3 months ago
version 2
da60c81b
2 commits,
3 months ago
version 1
bb40c5fa
1 commit,
3 months ago
2 files
+
20
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/Annotation/ComposerPackage.php
+
6
−
5
View file @ 2ab26290
Edit in single-file editor
Open in Web IDE
Show full file
@@ -48,12 +48,13 @@ class ComposerPackage extends InstallableLibrary {
if
(
!
isset
(
$this
->
availableVersions
))
{
$this
->
availableVersions
=
[];
$id
=
$this
->
getId
();
// To ensure we have the latest versions at all times, use the
// https://repo.packagist.org/p/[vendor]/[package].json URL which are
// static files and not cached.
$json
=
$this
->
requestJson
(
sprintf
(
'https://repo.packagist.org/p/%s.json'
,
$id
));
// Get latest versions from the API.
// See https://packagist.org/apidoc#get-package-data.
$json
=
$this
->
requestJson
(
sprintf
(
'https://repo.packagist.org/p2/%s.json'
,
$id
));
if
(
!
empty
(
$json
[
'packages'
][
$id
]))
{
$this
->
availableVersions
=
array_keys
(
$json
[
'packages'
][
$id
]);
foreach
(
$json
[
'packages'
][
$id
]
as
$package
)
{
$this
->
availableVersions
[]
=
$package
[
'version'
];
}
}
}
return
$this
->
availableVersions
;
Loading