Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed Jul 9, 2024
1 parent 6095bc9 commit 9615f76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions docs/content/guides/dagster/code-references.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ In a local context, it is useful to specify local code references in order to na

If using Dagster Plus, you can use the `link_code_references_to_git_if_cloud` utility to conditionally convert local file code references to source control links. This utility will automatically detect if your code is running in a Dagster Cloud environment and convert local file code references to source control links, pointing at the commit hash of the code running in the current deployment.

<!-- Dagster cloud packages not built into docs image yet, hence why this is included inline -->

```python
import os
from pathlib import Path
Expand Down Expand Up @@ -202,9 +204,10 @@ You may choose to conditionally apply this transformation based on the environme
import os
from pathlib import Path

from dagster import Definitions, asset
from dagster._core.definitions.metadata import (
from dagster import (
AnchorBasedFilePathMapping,
Definitions,
asset,
link_code_references_to_git,
with_source_code_references,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os
from pathlib import Path

from dagster import Definitions, asset
from dagster._core.definitions.metadata import (
from dagster import (
AnchorBasedFilePathMapping,
Definitions,
asset,
link_code_references_to_git,
with_source_code_references,
)
Expand Down
1 change: 0 additions & 1 deletion examples/docs_snippets/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"dagster-airflow",
"dagster-aws",
"dagster-celery",
"dagster-cloud",
"dagster-dbt",
"dagster-dask",
"dagster-databricks",
Expand Down

0 comments on commit 9615f76

Please sign in to comment.