Skip to content

Commit

Permalink
fix(composition): supergraph compose --profile supported (#2147)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronArinder authored Sep 18, 2024
1 parent 4054bdf commit 1cb44db
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/command/supergraph/compose/do_compose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use rover_client::shared::GraphRef;
use rover_client::RoverClientError;

use crate::composition::supergraph::config::SupergraphConfigResolver;
use crate::options::ProfileOpt;
use crate::utils::supergraph_config::get_supergraph_config;
use crate::utils::{client::StudioClientConfig, parsers::FileDescriptorType};
use crate::{
Expand Down Expand Up @@ -129,9 +128,6 @@ impl Compose {
) -> RoverResult<RoverOutput> {
#[cfg(debug_assertions)]
if self.opts.watch {
let profile = ProfileOpt {
profile_name: "default".to_string(),
};
let supergraph_config_root = if let Some(FileDescriptorType::File(file_path)) =
&self.opts.supergraph_config_source.supergraph_yaml
{
Expand All @@ -144,7 +140,8 @@ impl Compose {
} else {
Utf8PathBuf::try_from(current_dir()?)?
};
let studio_client = client_config.get_authenticated_client(&profile)?;
let studio_client =
client_config.get_authenticated_client(&self.opts.plugin_opts.profile)?;
let internal_supergraph_config_path =
Utf8PathBuf::from_path_buf(NamedTempFile::new()?.into_temp_path().to_path_buf())
.map_err(|err| {
Expand Down

0 comments on commit 1cb44db

Please sign in to comment.